aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawsquare.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_drawsquare.c')
-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 211f122..f23bd79 100644
--- a/src/ft_drawsquare.c
+++ b/src/ft_drawsquare.c
@@ -26,7 +26,8 @@ void
{
while (y > b - 40)
{
- mlx_pixel_put(clist->wlist->wlx, clist->wlist->winptr, x, y, rgb);
+ /* mlx_pixel_put(clist->wlist->wlx, clist->wlist->winptr, x, y, rgb); */
+ *(int*)(clist->img.ptr + (x * 4 + (y * clist->img.sizeline))) = rgb;
y--;
}
y = b;