aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_verline.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-07 19:03:53 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-07 19:03:53 +0100
commit4218ab8ee1a50c83a60c86a454f21d43146b46a0 (patch)
treef1f1926219786626f936b6f9ceeddd4e89062d91 /src/ft_draw_verline.c
parentRemoved one remaining POWER (diff)
download42-cub3d-4218ab8ee1a50c83a60c86a454f21d43146b46a0.tar.gz
42-cub3d-4218ab8ee1a50c83a60c86a454f21d43146b46a0.tar.bz2
42-cub3d-4218ab8ee1a50c83a60c86a454f21d43146b46a0.tar.xz
42-cub3d-4218ab8ee1a50c83a60c86a454f21d43146b46a0.tar.zst
42-cub3d-4218ab8ee1a50c83a60c86a454f21d43146b46a0.zip
The sky is nice
Diffstat (limited to 'src/ft_draw_verline.c')
-rw-r--r--src/ft_draw_verline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index 5250dc7..3198357 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -35,7 +35,7 @@ static void
{
*(int*)(cl->img.ptr +
(x * 4 + (i * cl->img.sizeline)))
- = ft_rgb_to_hex(cl->c_rgb);
+ = ft_darken_rgb(cl->c_rgb, cl);
i++;
}
}