Fix off-by-one when clipping rectangle bottom

This commit is contained in:
James R 2022-12-11 17:43:11 -08:00
parent 8cdfcea319
commit 09c55858b7

View file

@ -940,7 +940,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;
@ -967,7 +967,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;