diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-03-08 15:28:26 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-03-08 15:28:26 +0100 |
commit | 3205176d60f52ce487c3e3c5efaa89e15b9dd5ca (patch) | |
tree | 4a41010a24a01be60eb11a77e3556d7643b67769 /src/ft_draw_textures.c | |
parent | Norme iksde (diff) | |
download | 42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.gz 42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.bz2 42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.xz 42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.tar.zst 42-cub3d-3205176d60f52ce487c3e3c5efaa89e15b9dd5ca.zip |
Normed
Diffstat (limited to 'src/ft_draw_textures.c')
-rw-r--r-- | src/ft_draw_textures.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 7893ffe..e19d014 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -40,8 +40,7 @@ void ft_draw_texture(t_cub *cl, int x, int y, int tex_y) cl->tlist[cl->w_side].img_h * tex_y + 1] / calc; cl->img.ptr[x * 4 + (cl->img.sizeline * y) + 2] = (uint8_t)cl->tlist[cl->w_side].ptr[cl->tlist[cl->w_side].tex_x * 4 + 4 * - cl->tlist[cl->w_side].img_h * tex_y + 2] - / calc; + cl->tlist[cl->w_side].img_h * tex_y + 2] / calc; cl->img.ptr[x * 4 + cl->wlist.x_size * y + 3] = (char)0; } |