Fix off-by-one when clipping rectangle bottom
This commit is contained in:
parent
34fc4066d7
commit
bdb7d5c6a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue