aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_scene.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
commiteff45a482b40ddb5857adce9f6740282b04ab4a2 (patch)
tree213399609d267cbb1b376161e0297d6ee709ab8f /src/ft_draw_scene.c
parentNow BSD compliant (diff)
download42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.gz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.bz2
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.xz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.zst
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.zip
Pretty compliant but mutex problems
Diffstat (limited to '')
-rw-r--r--src/ft_draw_scene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c
index 36cdf4f..ad6b373 100644
--- a/src/ft_draw_scene.c
+++ b/src/ft_draw_scene.c
@@ -52,7 +52,7 @@ static int8_t
void
ft_draw_scene(t_cub *clist)
{
- if (FT_OS == 2)
+ if (FT_OS == 2 || FT_OS == 3)
{
clist->img.img = mlx_new_image(clist->wlist.wlx,
clist->wlist.x_size, clist->wlist.y_size);
@@ -67,7 +67,7 @@ void
ft_draw_hud(clist);
mlx_put_image_to_window(clist->wlist.wlx,
clist->wlist.winptr, clist->img.img, 0, 0);
- if (FT_OS == 2)
+ if (FT_OS == 2 || FT_OS == 3)
mlx_destroy_image(clist->wlist.wlx, clist->img.img);
if (clist->ishud)
{