rename window fdf

This commit is contained in:
hugogogo
2021-07-25 14:24:05 +02:00
parent a429813165
commit e4b4f5e751
8 changed files with 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fdf

Binary file not shown.

View File

@@ -26,7 +26,7 @@ void init_server(t_fdf *fdf)
if (!fdf->mlx_ptr)
shut_down(fdf);
fdf->win_ptr = mlx_new_window(fdf->mlx_ptr, fdf->win_size_x,
fdf->win_size_y, "test");
fdf->win_size_y, "fdf");
if (!fdf->win_ptr)
shut_down(fdf);
fdf->img_ptr = mlx_new_image(fdf->mlx_ptr, fdf->img_size_x,

View File

@@ -14,6 +14,8 @@ int **split_to_map(t_fdf *fdf, char *raw)
int j;
int **map;
if (fdf->map_height == 0)
shut_down(fdf);
map = ft_calloc(fdf->map_height, sizeof(map));
if (!map)
shut_down(fdf);