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;