From 751f38b640b676c0c0dbcaa0a3af14383f123917 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 13 Feb 2020 18:58:33 +0100 Subject: Solid map is better --- src/ft_drawmap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c index 9f749ad..b8b4e2c 100644 --- a/src/ft_drawmap.c +++ b/src/ft_drawmap.c @@ -30,14 +30,14 @@ static void while (map[y][x]) { if (map[y][x] == '1') - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), 0x00aa99aa, clist); + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), 0x00aa99aa, clist); else if (map[y][x] == '2') - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), 0x0033ccff, clist); + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), 0x0033ccff, clist); else - ft_drawsquare(scale + (x * (scale + 1)), - scale + (y * (scale + 1)), + ft_drawsquare(scale + (x * (scale)), + scale + (y * (scale)), ft_rgb_to_hex(clist->f_rgb), clist); x++; } -- cgit v1.2.3