-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.c
More file actions
28 lines (25 loc) · 1.31 KB
/
errors.c
File metadata and controls
28 lines (25 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cababou <cababou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/08 22:36:38 by cababou #+# #+# */
/* Updated: 2018/09/02 00:13:57 by cababou ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void show_error_window(t_params *p, void *mlx, int error_type, void *content)
{
t_window *window;
window = create_window_struct(p, 750, 75, "Error");
init_window(p, mlx, window);
fill_window(mlx, window, 9868950);
if (error_type == 100)
mlx_string_put(mlx, window->window, 25, 25, 16777215, (char *)content);
else
mlx_string_put(mlx, window->window, 10, 10, 16777215,
"An unknown error occured");
mlx_loop(mlx);
}