-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmove_center.c
28 lines (25 loc) · 1.08 KB
/
move_center.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
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* move_center.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: taehkwon <taehkwon@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/14 10:49:45 by taehkwon #+# #+# */
/* Updated: 2023/07/27 19:52:06 by taehkwon ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void move_center(t_map *map)
{
int i;
int size;
i = 0;
size = map->height * map->width;
while (i < size)
{
map->p_map[i].x += WIDTH / 2;
map->p_map[i].y += HEIGHT / 2;
i++;
}
}