aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_tex_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_tex_init.c')
-rw-r--r--src/ft_tex_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_tex_init.c b/src/ft_tex_init.c
index 38e4c77..9daa20d 100644
--- a/src/ft_tex_init.c
+++ b/src/ft_tex_init.c
@@ -51,6 +51,10 @@ static void
cl->mlist.ce_tex_path, &cl->tlist[7].img_w, &cl->tlist[7].img_h);
cl->tlist[7].ptr = mlx_get_data_addr(cl->tlist[7].img,
&cl->tlist[7].bpp, &cl->tlist[7].sizeline, &cl->tlist[7].endian);
+ cl->tlist[8].img = mlx_xpm_file_to_image(cl->wlist.wlx,
+ cl->mlist.sprite_path, &cl->tlist[4].img_w, &cl->tlist[4].img_h);
+ cl->tlist[8].ptr = mlx_get_data_addr(cl->tlist[8].img,
+ &cl->tlist[8].bpp, &cl->tlist[8].sizeline, &cl->tlist[8].endian);
}
static void