diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-11 15:30:51 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-03-11 15:30:51 +0100 |
commit | 114df1314a69161e5802ce6192aa8f1599867f3e (patch) | |
tree | cbb1c2f3c9e942a17b544d613f011aa7569e13cb /src/ft_draw_scene.c | |
parent | is not working (diff) | |
download | 42-cub3d-114df1314a69161e5802ce6192aa8f1599867f3e.tar.gz 42-cub3d-114df1314a69161e5802ce6192aa8f1599867f3e.tar.bz2 42-cub3d-114df1314a69161e5802ce6192aa8f1599867f3e.tar.xz 42-cub3d-114df1314a69161e5802ce6192aa8f1599867f3e.tar.zst 42-cub3d-114df1314a69161e5802ce6192aa8f1599867f3e.zip |
qweqwe
Diffstat (limited to 'src/ft_draw_scene.c')
-rw-r--r-- | src/ft_draw_scene.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c index 4d15df2..9664363 100644 --- a/src/ft_draw_scene.c +++ b/src/ft_draw_scene.c @@ -41,10 +41,10 @@ static int8_t void ft_draw_scene(t_cub *clist) { - 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); + /* 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); */ ft_castray(clist); if (clist->ishud) { @@ -53,7 +53,7 @@ void if (clist->mlist.isskybox) ft_draw_skybox(clist); mlx_put_image_to_window(clist->wlist.wlx, - clist->wlist.winptr, clist->img.img, 0, 0); + clist->wlist.winptr, clist->img.img, 0, 0); if (clist->ishud && clist->mlist.isnlvl) { if (ft_put_stage(clist) < 0) @@ -61,7 +61,7 @@ void ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, clist); } } - mlx_destroy_image(clist->wlist.wlx, clist->img.img); + /* mlx_destroy_image(clist->wlist.wlx, clist->img.img); */ } void |