From e347a314cb7b47a7d4ece2a2dea65c9e02266b13 Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Sun, 19 Mar 2023 02:13:51 +0100 Subject: [PATCH] Use default dim constants --- main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index 59d68ec..2fbd51a 100644 --- a/main.c +++ b/main.c @@ -6,14 +6,13 @@ /* By: jtorrez- +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */ -/* Updated: 2023/03/19 00:20:54 by tischmid ### ########.fr */ +/* Updated: 2023/03/19 02:05:14 by tischmid ### ########.fr */ /* */ /* ************************************************************************** */ -#include #include "include/ft_lib.h" #include "include/arghandle.h" -#include "include/rush00.h" +#include "include/rush0X.h" int main(int argc, char *argv[]) { @@ -28,8 +27,8 @@ int main(int argc, char *argv[]) usage(argv[0]); return (1); } - max_width = get_dim("cols", 200); - max_height = get_dim("lines", 200); + max_width = get_dim("cols", g_default_max_width); + max_height = get_dim("lines", g_default_max_height); width = ft_atoi(argv[1]); height = ft_atoi(argv[2]); if (width > max_width)