aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_drawsquare.c5
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;