diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_square.c | 4 |
1 files changed, 2 insertions, 2 deletions
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--; |