aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_square.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_square.c')
-rw-r--r--src/ft_draw_square.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_square.c b/src/ft_draw_square.c
index 355969e..793bb8c 100644
--- a/src/ft_draw_square.c
+++ b/src/ft_draw_square.c
@@ -17,7 +17,7 @@
void
ft_draw_square(int a, int b, int rgb, t_cub *clist)
{
- const uint16_t scale = clist->mlist->scale;
+ const uint16_t scale = clist.mlist.scale;
int x;
int y;
@@ -27,7 +27,7 @@ void
{
while (y >= b - scale)
{
- *(int*)(clist->img.ptr + (x * 4 + (y * clist->img.sizeline))) = rgb;
+ *(int*)(clist.img.ptr + (x * 4 + (y * clist.img.sizeline))) = rgb;
y--;
}
y = b;