diff --git a/src/v_video.c b/src/v_video.c index eafd5c849ce1a5eb54c2737354e2bef6bccb4980..64bb3214e0de5aa06fce57c08b4385e2dc2ca6c0 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -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); }