aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_suffer_animation.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 18:04:38 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-23 18:04:38 +0100
commit50759fcc4f3b939ad35254ce220c206056f3f31e (patch)
treefd28f91d64ccefe142927eeaf9dc85e5719c3666 /src/ft_suffer_animation.c
parentGood tweak (diff)
download42-cub3d-50759fcc4f3b939ad35254ce220c206056f3f31e.tar.gz
42-cub3d-50759fcc4f3b939ad35254ce220c206056f3f31e.tar.bz2
42-cub3d-50759fcc4f3b939ad35254ce220c206056f3f31e.tar.xz
42-cub3d-50759fcc4f3b939ad35254ce220c206056f3f31e.tar.zst
42-cub3d-50759fcc4f3b939ad35254ce220c206056f3f31e.zip
Fixed
Diffstat (limited to 'src/ft_suffer_animation.c')
-rw-r--r--src/ft_suffer_animation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_suffer_animation.c b/src/ft_suffer_animation.c
index 51de24a..1b48e47 100644
--- a/src/ft_suffer_animation.c
+++ b/src/ft_suffer_animation.c
@@ -75,7 +75,7 @@ void
rgb.g += 20;
rgb.b += 20;
*(int*)(cl->img.ptr +
- (x * 4 + (y * cl->img.sizeline))) = ft_rgb_to_hex(rgb);
+ (x * 4 + (y * cl->img.sizeline))) = ft_rgb_to_hex(0, rgb, cl);
}
}
ft_get_damaged(cl);