aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_death_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r--src/ft_death_screen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_death_screen.c b/src/ft_death_screen.c
index cc299d1..55a61cb 100644
--- a/src/ft_death_screen.c
+++ b/src/ft_death_screen.c
@@ -25,10 +25,10 @@ static void
while (y < (int32_t)cl->wlist.y_size)
{
x = 0;
+ cl->death_screen.tex_y = ((y * y_ratio) >> 16);
while (x < (int32_t)cl->wlist.x_size)
{
cl->death_screen.tex_x = ((x * x_ratio) >> 16);
- 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_w * cl->death_screen.tex_y];
@@ -38,7 +38,6 @@ static void
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++;