Change maximum allowed height to height-2
This commit is contained in:
parent
e458d0a5df
commit
c3f23a99bf
6
main.c
6
main.c
|
@ -6,7 +6,7 @@
|
||||||
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jtorrez- <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */
|
/* Created: 2023/03/18 20:15:26 by jtorrez- #+# #+# */
|
||||||
/* Updated: 2023/03/19 03:45:07 by tischmid ### ########.fr */
|
/* Updated: 2023/03/19 03:46:33 by tischmid ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ int main(int argc, char *argv[])
|
||||||
height = ft_atoi(argv[2]);
|
height = ft_atoi(argv[2]);
|
||||||
if (width > max_width)
|
if (width > max_width)
|
||||||
return (wrong_dimension("width", max_width, width));
|
return (wrong_dimension("width", max_width, width));
|
||||||
else if (height > max_height - 3)
|
else if (height > max_height - 2)
|
||||||
return (wrong_dimension("height", max_height - 3, height));
|
return (wrong_dimension("height", max_height - 2, height));
|
||||||
rush(width, height);
|
rush(width, height);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue