aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_square.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 14:47:33 +0100
commit8866ef5699150d0549096efa94fc311ff7a48dc7 (patch)
tree4a03267f7e7f9b399a9ad0536b50ba6a90407e47 /src/ft_draw_square.c
parentMusic is pretty bav (diff)
download42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.gz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.bz2
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.xz
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.tar.zst
42-cub3d-8866ef5699150d0549096efa94fc311ff7a48dc7.zip
Changing stuff
Diffstat (limited to '')
-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;