aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_drawmap.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-04 22:58:58 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-04 22:58:58 +0100
commitde72340f4954e4449015885543b256d67e0dc36c (patch)
treec6b4ea0c41b9afd9fb605c17184f471776c2bd19 /src/ft_drawmap.c
parentleaks fix (diff)
download42-cub3d-de72340f4954e4449015885543b256d67e0dc36c.tar.gz
42-cub3d-de72340f4954e4449015885543b256d67e0dc36c.tar.bz2
42-cub3d-de72340f4954e4449015885543b256d67e0dc36c.tar.xz
42-cub3d-de72340f4954e4449015885543b256d67e0dc36c.tar.zst
42-cub3d-de72340f4954e4449015885543b256d67e0dc36c.zip
Pretty good
Diffstat (limited to '')
-rw-r--r--src/ft_drawmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_drawmap.c b/src/ft_drawmap.c
index 67c6d34..698d852 100644
--- a/src/ft_drawmap.c
+++ b/src/ft_drawmap.c
@@ -55,11 +55,11 @@ static void
void
ft_drawmap(t_cub *clist)
{
+ mlx_clear_window(clist->wlist->wlx, clist->wlist->winptr);
clist->img.img = mlx_new_image(clist->wlist->wlx,
clist->wlist->x_size, clist->wlist->y_size);
clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp,
&clist->img.sizeline, &clist->img.endian);
- /* mlx_clear_window(clist->wlist->wlx, clist->wlist->winptr); */
ft_draw_core_map(clist->map, clist);
ft_draw_player(clist->plist, clist);
mlx_put_image_to_window(clist->wlist->wlx,