Skip to content

Commit

Permalink
Fix bottom edge of antialiased automap when r_sceensize is 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 2, 2023
1 parent 4c6b06d commit 5daefb1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2102,10 +2102,14 @@ static void AM_AntiAliasing(void)
mapscreen[x] = tinttab33[mapscreen[x]];

for (int y = 0; y <= (int)MAPAREA - MAPWIDTH; y += MAPWIDTH)
{
mapscreen[y] = tinttab33[mapscreen[y]];
mapscreen[y + MAPWIDTH - 1] = tinttab33[mapscreen[y + MAPWIDTH - 1]];
}

for (int y = MAPWIDTH - 1; y <= (int)MAPAREA - 1; y += MAPWIDTH)
mapscreen[y] = tinttab33[mapscreen[y]];

if (r_screensize == r_screensize_max)
for (int x = MAPAREA - MAPWIDTH; x < MAPAREA; x++)
mapscreen[x] = tinttab33[mapscreen[x]];
}

void AM_Drawer(void)
Expand Down

0 comments on commit 5daefb1

Please sign in to comment.