- scale weapons down to the original tile's size.

Needed because hires replacements contain no scaling info.
This commit is contained in:
Christoph Oelckers 2020-10-04 15:32:52 +02:00
parent 393b0a1db2
commit 58dcf0586b

View file

@ -572,7 +572,7 @@ void hud_drawsprite(double sx, double sy, int z, double a, int picnum, int dasha
if (!PickTexture(picnum, nullptr, palid, pick)) return; if (!PickTexture(picnum, nullptr, palid, pick)) return;
DrawTexture(&twodpsp, pick.texture, sx, sy, DrawTexture(&twodpsp, pick.texture, sx, sy,
DTA_ScaleX, dz, DTA_ScaleY, dz, DTA_ScaleX, dz * tileWidth(picnum) / pick.texture->GetDisplayWidth() , DTA_ScaleY, dz * tileHeight(picnum) / pick.texture->GetDisplayHeight(),
DTA_Color, shadeToLight(dashade), DTA_Color, shadeToLight(dashade),
DTA_TranslationIndex, pick.translation & 0x7fffffff, DTA_TranslationIndex, pick.translation & 0x7fffffff,
DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y, DTA_ViewportX, windowxy1.x, DTA_ViewportY, windowxy1.y,