aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-25 19:28:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-25 19:28:42 +0100
commit38fa236364fe7268ed2a6cf7745d92b3df8465c7 (patch)
treecd415c2a272707e7ff08ae94f663f9c39ca29ff8 /src/ft_drawsquare.c
parentColors parsed (diff)
download42-cub3d-38fa236364fe7268ed2a6cf7745d92b3df8465c7.tar.gz
42-cub3d-38fa236364fe7268ed2a6cf7745d92b3df8465c7.tar.bz2
42-cub3d-38fa236364fe7268ed2a6cf7745d92b3df8465c7.tar.xz
42-cub3d-38fa236364fe7268ed2a6cf7745d92b3df8465c7.tar.zst
42-cub3d-38fa236364fe7268ed2a6cf7745d92b3df8465c7.zip
Pretty bav
Diffstat (limited to '')
-rw-r--r--src/ft_drawsquare.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c
index 78ebd8c..df055fa 100644
--- a/src/ft_drawsquare.c
+++ b/src/ft_drawsquare.c
@@ -13,7 +13,8 @@ ft_drawsquare(t_win *wlist, int a, int b)
{
while (y > b - 40)
{
- mlx_pixel_put(wlist->wlx, wlist->winptr, x, y, 0255255255);
+ mlx_pixel_put(wlist->wlx, wlist->winptr, x, y,
+ wlist->clist->f_color);
y--;
}
y = b;