From 7d4c1bcf225f4742f98efcf20f3c0481d082d4a4 Mon Sep 17 00:00:00 2001 From: Pedro Beirao Date: Fri, 22 Nov 2024 23:38:38 +0000 Subject: [PATCH] Fix fuzz columns positions and simplify --- prboom2/src/r_drawflush.inl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/prboom2/src/r_drawflush.inl b/prboom2/src/r_drawflush.inl index b5d4c1c8a..1dcad67d0 100644 --- a/prboom2/src/r_drawflush.inl +++ b/prboom2/src/r_drawflush.inl @@ -52,9 +52,8 @@ static void R_FLUSHWHOLE_FUNCNAME(void) return; } - int x = temp_x; - int yl = tempyl[x - 1]; - int yh = tempyh[x - 1]; + int yl = tempyl[temp_x - 1]; + int yh = tempyh[temp_x - 1]; if (!yl) { @@ -83,7 +82,7 @@ static void R_FLUSHWHOLE_FUNCNAME(void) ++count; - byte *dest = drawvars.topleft + startx + yl * drawvars.pitch + x; + byte *dest = drawvars.topleft + yl * drawvars.pitch + startx + temp_x - fuzzcellsize; int lines = fuzzcellsize - (yl % fuzzcellsize);