Use less-than, not less-than-or-equals, since deststop is off-screen
This commit is contained in:
1 parent
5e4f960f3a
commit
7f7c7c58ab
1 file changed
+1
-1
+1
-1
@@ -830,7 +830,7 @@ void V_DrawFill(INT32 x, INT32 y, INT32 w, INT32 h, INT32 c)
|
||||
|
||||
c &= 255;
|
||||
|
||||
for (;(--h >= 0) && dest <= deststop; dest += vid.width)
|
||||
for (;(--h >= 0) && dest < deststop; dest += vid.width)
|
||||
memset(dest, (UINT8)(c&255), w * vid.bpp);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user