diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:53:48 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-01-23 18:53:48 +0100 |
commit | 2b2ab7d08a8e3fb441bc441c349d39221c615e4d (patch) | |
tree | 499cc59e6285991d75ca0bbeb777e18665963806 | |
parent | Nice squares (diff) | |
download | 42-cub3d-2b2ab7d08a8e3fb441bc441c349d39221c615e4d.tar.gz 42-cub3d-2b2ab7d08a8e3fb441bc441c349d39221c615e4d.tar.bz2 42-cub3d-2b2ab7d08a8e3fb441bc441c349d39221c615e4d.tar.xz 42-cub3d-2b2ab7d08a8e3fb441bc441c349d39221c615e4d.tar.zst 42-cub3d-2b2ab7d08a8e3fb441bc441c349d39221c615e4d.zip |
I got colors
-rw-r--r-- | inc/cub3d.h | 2 | ||||
-rw-r--r-- | src/ft_drawsquare.c | 2 |
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; |