rename window fdf
This commit is contained in:
BIN
builds/draw.o
BIN
builds/draw.o
Binary file not shown.
BIN
builds/fdf.o
BIN
builds/fdf.o
Binary file not shown.
Binary file not shown.
BIN
builds/modifs.o
BIN
builds/modifs.o
Binary file not shown.
BIN
builds/parse.o
BIN
builds/parse.o
Binary file not shown.
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user