-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlose_page.c
25 lines (22 loc) · 1.13 KB
/
lose_page.c
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lose_page.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: majjig <majjig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/12 00:53:18 by majjig #+# #+# */
/* Updated: 2021/12/12 00:53:19 by majjig ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
int lose_page(t_mlx *mlx)
{
char *img;
int weight;
int height;
img = mlx_xpm_file_to_image(mlx->mlx, "lose.xpm", &weight, &height);
mlx_put_image_to_window(mlx->mlx, mlx->win, img, 0, 0);
mlx_destroy_image(mlx->mlx, img);
return (0);
}