aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ft_drawmap.c2
-rw-r--r--src/ft_drawsquare.c1
2 files changed, 1 insertions, 2 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,
diff --git a/src/ft_drawsquare.c b/src/ft_drawsquare.c
index f23bd79..1488c68 100644
--- a/src/ft_drawsquare.c
+++ b/src/ft_drawsquare.c
@@ -26,7 +26,6 @@ void
{
while (y > b - 40)
{
- /* mlx_pixel_put(clist->wlist->wlx, clist->wlist->winptr, x, y, rgb); */
*(int*)(clist->img.ptr + (x * 4 + (y * clist->img.sizeline))) = rgb;
y--;
}