Skip to content

Commit

Permalink
Fix fuzz columns positions and simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed Nov 22, 2024
1 parent 5db8fac commit 7d4c1bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prboom2/src/r_drawflush.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 7d4c1bc

Please sign in to comment.