-
Notifications
You must be signed in to change notification settings - Fork 1
/
get_win_size.c
25 lines (22 loc) · 1.07 KB
/
get_win_size.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_win_size.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: majjig <majjig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/07 03:18:56 by majjig #+# #+# */
/* Updated: 2021/12/10 02:19:32 by majjig ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
t_pos get_window_size(char **map)
{
t_pos len;
len.x = ft_strlen(map[0]);
while (map[len.y] != NULL)
len.y++;
len.x *= ELEMENT_LEN;
len.y *= ELEMENT_LEN;
return (len);
}