Merge branch 'fix-opengl-clip-bottom-right' into 'master'

Fix item roulette scrolling past bottom of HUD box in OpenGL

See merge request KartKrew/Kart!816
This commit is contained in:
Sal 2022-12-18 06:01:27 +00:00
commit 076858970b

View file

@ -249,7 +249,7 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
if ((cx + fwidth) > clip->right)
{
const float n = (clip->right - clip->left);
const float n = (clip->right - cx);
s_max = (s_min + ((n / fwidth) * s_max));
fwidth = n;
@ -257,7 +257,7 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p
if ((cy + fheight) > clip->bottom)
{
const float n = (clip->bottom - clip->top);
const float n = (clip->bottom - cy);
t_max = (t_min + ((n / fheight) * t_max));
fheight = n;