Use default dim constants
This commit is contained in:
parent
1531bc9550
commit
e347a314cb
9
main.c
9
main.c
|
@ -6,14 +6,13 @@
|
|||
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 <stdio.h>
|
||||
#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)
|
||||
|
|
Loading…
Reference in New Issue