diff options
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r-- | src/ft_death_screen.c | 16 |
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++; |