From f2fa2bc44c7d2c59c154ad85d0461fa8ab70dc81 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Tue, 31 Dec 2024 12:03:55 +0700 Subject: [PATCH] use video.width instead of video.pitch --- src/r_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_draw.c b/src/r_draw.c index 647126b78..c6db31133 100644 --- a/src/r_draw.c +++ b/src/r_draw.c @@ -488,7 +488,7 @@ static void DrawFuzzColumnBlocky(void) int lines = fuzzblocksize - (dc_yl % fuzzblocksize); - const int fuzzblockwidth = MIN(fuzzblocksize, linesize - dc_x); + const int fuzzblockwidth = MIN(fuzzblocksize, video.width - dc_x); do { @@ -582,7 +582,7 @@ static void DrawFuzzColumnRefraction(void) int lines = fuzzblocksize - (dc_yl % fuzzblocksize); - const int fuzzblockwidth = MIN(fuzzblocksize, linesize - dc_x); + const int fuzzblockwidth = MIN(fuzzblocksize, video.width - dc_x); int dark = FUZZDARK; int offset = 0;