From 3cb1ee41e7d449586830aac703f64e2b66a75e7d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 5 Mar 2020 00:35:30 +0100 Subject: okokokokok --- src/ft_save_to_bmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ft_save_to_bmp.c') diff --git a/src/ft_save_to_bmp.c b/src/ft_save_to_bmp.c index 9526e62..648cba6 100644 --- a/src/ft_save_to_bmp.c +++ b/src/ft_save_to_bmp.c @@ -63,9 +63,8 @@ static uint8_t x = -1; while (++x < cl->wlist.x_size) { - /* px = ft_hex_to_rgb(*(int*)(cl->img.ptr */ - /* + (x * 4 + (y * cl->img.sizeline)))); */ - px = ft_hex_to_rgb(0x00ff2222); + px = ft_hex_to_rgb(*(int*)(cl->img.ptr + + (x * 4 + (y * cl->img.sizeline)))); *(bmp + i++) = (uint8_t)px.b; *(bmp + i++) = (uint8_t)px.g; *(bmp + i++) = (uint8_t)px.r; -- cgit v1.2.3