Merge branch 'fix-stretchy-vertical-scale-again' into 'master'

Fix V_DrawStretchyFixedPatch vertical scaling AGAIN

See merge request KartKrew/Kart!1206
This commit is contained in:
toaster 2023-04-26 15:07:50 +00:00
commit 9af71ebfaa

View file

@ -886,10 +886,12 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
else
pwidth = patch->width * dupx;
float fdupy = FIXED_TO_FLOAT(vdup);
float fx = x;
float fy = y;
float fx2 = fx + pwidth;
float fy2 = fy + ((patch->height * vdup) / FRACUNIT);
float fy2 = fy + std::round(static_cast<float>(patch->height) * fdupy);
float falpha = 1.f;
float umin = 0.f;
float umax = 1.f;