aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_death_screen.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 17:53:10 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 17:53:10 +0100
commitd2a6c0296d39abc18ea14af9e1a66575d3005de9 (patch)
treedf99789b0cd405c5841ae53410cae762ce69cd13 /src/ft_death_screen.c
parentAlmost there (diff)
download42-cub3d-d2a6c0296d39abc18ea14af9e1a66575d3005de9.tar.gz
42-cub3d-d2a6c0296d39abc18ea14af9e1a66575d3005de9.tar.bz2
42-cub3d-d2a6c0296d39abc18ea14af9e1a66575d3005de9.tar.xz
42-cub3d-d2a6c0296d39abc18ea14af9e1a66575d3005de9.tar.zst
42-cub3d-d2a6c0296d39abc18ea14af9e1a66575d3005de9.zip
The screen is there
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r--src/ft_death_screen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_death_screen.c b/src/ft_death_screen.c
index 13aa7cf..30bed48 100644
--- a/src/ft_death_screen.c
+++ b/src/ft_death_screen.c
@@ -40,14 +40,14 @@ static void
cl->death_screen.tex_y = ((y * y_ratio) >> 16);
cl->img.ptr[x * 4 + (cl->img.sizeline * y)] =
(uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 *
- cl->death_screen.img_h * cl->death_screen.tex_y];
- /* cl->img.ptr[x * 4 + (cl->img.sizeline * y) + 1] = */
- /* (uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 * */
- /* cl->death_screen.img_h * cl->death_screen.tex_y + 1]; */
- /* cl->img.ptr[x * 4 + (cl->img.sizeline * y) + 2] = */
- /* (uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 * */
- /* cl->death_screen.img_h * cl->death_screen.tex_y + 2]; */
- /* cl->img.ptr[x * 4 + cl->wlist.x_size * y + 3] = (char)0; */
+ cl->death_screen.img_w * cl->death_screen.tex_y];
+ cl->img.ptr[x * 4 + (cl->img.sizeline * y) + 1] =
+ (uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 *
+ cl->death_screen.img_w * cl->death_screen.tex_y + 1];
+ cl->img.ptr[x * 4 + (cl->img.sizeline * y) + 2] =
+ (uint8_t)cl->death_screen.ptr[cl->death_screen.tex_x * 4 + 4 *
+ cl->death_screen.img_w * cl->death_screen.tex_y + 2];
+ cl->img.ptr[x * 4 + cl->wlist.x_size * y + 3] = (char)0;
x++;
}
y++;