diff options
Diffstat (limited to 'src/ft_get_screen_size.c')
-rw-r--r-- | src/ft_get_screen_size.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_get_screen_size.c b/src/ft_get_screen_size.c index 2b437c3..5bfd04e 100644 --- a/src/ft_get_screen_size.c +++ b/src/ft_get_screen_size.c @@ -22,11 +22,11 @@ int8_t return (-1); if (!(*words + 0) || !(*(words + 1)) || (*(words + 2))) return (-1); - wlist->x_max_size = ft_atoi(words[0]); - wlist->y_max_size = ft_atoi(words[1]); - if (wlist->x_size > wlist->x_max_size) - wlist->x_size = wlist->x_max_size; - if (wlist->y_size > wlist->y_max_size) - wlist->y_size = wlist->y_max_size; + wlist.x_max_size = ft_atoi(words[0]); + wlist.y_max_size = ft_atoi(words[1]); + if (wlist.x_size > wlist.x_max_size) + wlist.x_size = wlist.x_max_size; + if (wlist.y_size > wlist.y_max_size) + wlist.y_size = wlist.y_max_size; return (ft_free_words(words)); } |