From 0c2bb0f610c0af0680b46fc4566a207d59781e4d Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 27 Jan 2020 19:20:28 +0100 Subject: Switched lists entierly --- src/ft_drawsquare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_drawsquare.c') diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c index 1f1334b..3bf891b 100644 --- a/src/ft_drawsquare.c +++ b/src/ft_drawsquare.c @@ -2,7 +2,7 @@ #include void -ft_drawsquare(int a, int b, int rgb, t_win *wlist) +ft_drawsquare(int a, int b, int rgb, t_cub *clist) { int x; int y; @@ -13,7 +13,7 @@ ft_drawsquare(int a, int b, int rgb, t_win *wlist) { while (y > b - 40) { - mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, rgb); + mlx_pixel_put(clist->wlist->wlx, clist->wlist->winptr, x, y, rgb); y--; } y = b; -- cgit v1.2.3