Skip to content

Commit

Permalink
use video.width instead of video.pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Dec 31, 2024
1 parent fe20c49 commit f2fa2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/r_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f2fa2bc

Please sign in to comment.