aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_square.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-22 20:55:23 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-22 20:55:23 +0100
commit8a4e61b81568aeff290df59e371c99724728ce4a (patch)
treeeb3528688a76c09df091bfda01f4c68a7680b36c /src/ft_draw_square.c
parentDrawing some HUD (diff)
download42-cub3d-8a4e61b81568aeff290df59e371c99724728ce4a.tar.gz
42-cub3d-8a4e61b81568aeff290df59e371c99724728ce4a.tar.bz2
42-cub3d-8a4e61b81568aeff290df59e371c99724728ce4a.tar.xz
42-cub3d-8a4e61b81568aeff290df59e371c99724728ce4a.tar.zst
42-cub3d-8a4e61b81568aeff290df59e371c99724728ce4a.zip
Perfect
Diffstat (limited to 'src/ft_draw_square.c')
-rw-r--r--src/ft_draw_square.c4
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--;