From 7f7c7c58ab0f365d9923c1929ae5d1e3e8aced9d Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Mon, 24 Apr 2017 17:41:50 +0100
Subject: [PATCH] Use less-than, not less-than-or-equals, since deststop is
 off-screen

---
 src/v_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/v_video.c b/src/v_video.c
index eafd5c849c..64bb3214e0 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);
 }
 
-- 
GitLab