diff --git a/includes/cub3d.h b/includes/cub3d.h index 1b9f5c4..4d44a3a 100644 --- a/includes/cub3d.h +++ b/includes/cub3d.h @@ -6,7 +6,7 @@ /* By: aortigos dt->ff[0]), ft_atoi(mlx->dt->ff[1]), ft_atoi(mlx->dt->ff[2]), 255); while (i < S_H) - my_mlx_pixel_put(mlx, ray, i++, c); + cub3d_put_pixel(mlx, ray, i++, c); c = get_rgba(ft_atoi(mlx->dt->cc[0]), ft_atoi(mlx->dt->cc[1]), ft_atoi(mlx->dt->cc[2]), 255); i = 0; while (i < t_pix) - my_mlx_pixel_put(mlx, ray, i++, c); + cub3d_put_pixel(mlx, ray, i++, c); } mlx_texture_t *get_texture(t_mlx *mlx, int flag) @@ -78,7 +78,7 @@ void draw_wall(t_mlx *mlx, int t_pix, int b_pix, double wall_h) y_o = 0; while (t_pix < b_pix) { - my_mlx_pixel_put(mlx, mlx->ray->index, t_pix, reverse_bytes(arr[(int)y_o + cub3d_put_pixel(mlx, mlx->ray->index, t_pix, reverse_bytes(arr[(int)y_o * texture->width + (int)x_o])); y_o += factor; t_pix++; diff --git a/src/execution/render2.c b/src/execution/render2.c index 9f8c66c..7b4109d 100644 --- a/src/execution/render2.c +++ b/src/execution/render2.c @@ -6,7 +6,7 @@ /* By: aortigos