diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-26 22:28:11 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-26 22:28:11 +0100 |
commit | 29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede (patch) | |
tree | a6060e809807384d96099df120d0c423d1da09b1 /src/ft_drawsquare.c | |
parent | Better error management (diff) | |
download | 42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.gz 42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.bz2 42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.xz 42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.tar.zst 42-cub3d-29b45c0bbdcc3a8eb980d6fdc65efa09382c0ede.zip |
Can't believe it
Diffstat (limited to '')
-rw-r--r-- | src/ft_drawsquare.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c index df055fa..1f1334b 100644 --- a/src/ft_drawsquare.c +++ b/src/ft_drawsquare.c @@ -2,7 +2,7 @@ #include <cub3d.h> void -ft_drawsquare(t_win *wlist, int a, int b) +ft_drawsquare(int a, int b, int rgb, t_win *wlist) { int x; int y; @@ -13,8 +13,7 @@ ft_drawsquare(t_win *wlist, int a, int b) { while (y > b - 40) { - mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, - wlist->clist->f_color); + mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, rgb); y--; } y = b; |