aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
diff options
context:
space:
mode:
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;