aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 19:20:28 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-27 19:20:28 +0100
commit0c2bb0f610c0af0680b46fc4566a207d59781e4d (patch)
tree986d6dd6a19416593c9b2c043312ffa5d4f0be73 /src/ft_drawsquare.c
parentin progress (diff)
download42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.gz
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.bz2
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.xz
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.tar.zst
42-cub3d-0c2bb0f610c0af0680b46fc4566a207d59781e4d.zip
Switched lists entierly
Diffstat (limited to 'src/ft_drawsquare.c')
-rw-r--r--src/ft_drawsquare.c4
1 files changed, 2 insertions, 2 deletions
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 <cub3d.h>
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;