aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--inc/cub3d.h2
-rw-r--r--src/ft_drawsquare.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index fa6a08f..459bbb7 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -21,6 +21,6 @@ t_win *ft_init_win(void);
void ft_parse_map(t_cub *clist);
int ft_key_event(int keycode, void *param);
void ft_exit(uint8_t exit_code);
-void ft_drawsquare(t_win *wlist, int a, int b);
+void ft_drawsquare(t_win *wlist, t_cub *clist, int a, int b);
#endif
diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c
index d720f44..78ebd8c 100644
--- a/src/ft_drawsquare.c
+++ b/src/ft_drawsquare.c
@@ -13,7 +13,7 @@ ft_drawsquare(t_win *wlist, int a, int b)
{
while (y > b - 40)
{
- mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, 255);
+ mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, 0255255255);
y--;
}
y = b;