Fix off-by-one when clipping rectangle bottom

This commit is contained in:
James R 2022-12-11 17:43:11 -08:00 committed by GenericHeroGuy
parent 34fc4066d7
commit bdb7d5c6a0

View file

@ -948,7 +948,7 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
continue;
}
if (cy > clip->bottom) // don't draw off the bottom of the clip rect
if (cy >= clip->bottom) // don't draw off the bottom of the clip rect
{
dest += vid.width;
continue;
@ -975,7 +975,7 @@ void V_DrawStretchyFixedPatch(fixed_t x, fixed_t y, fixed_t pscale, fixed_t vsca
continue;
}
if (cy > clip->bottom) // don't draw off the bottom of the clip rect
if (cy >= clip->bottom) // don't draw off the bottom of the clip rect
{
dest += vid.width;
continue;