From 8a4e61b81568aeff290df59e371c99724728ce4a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 22 Feb 2020 20:55:23 +0100 Subject: Perfect --- src/ft_draw_square.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_draw_square.c') diff --git a/src/ft_draw_square.c b/src/ft_draw_square.c index 8bbce36..355969e 100644 --- a/src/ft_draw_square.c +++ b/src/ft_draw_square.c @@ -23,9 +23,9 @@ void x = a; y = b; - while (x > a - scale) + while (x >= a - scale) { - while (y > b - scale) + while (y >= b - scale) { *(int*)(clist->img.ptr + (x * 4 + (y * clist->img.sizeline))) = rgb; y--; -- cgit v1.2.3