From 09c55858b759a6f5518b305e2bb1a821bf268ea1 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 11 Dec 2022 17:43:11 -0800 Subject: [PATCH] Fix off-by-one when clipping rectangle bottom --- src/v_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index 66be9bf30..d65b34cea 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -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;