diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 00:29:30 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-23 00:29:30 +0100 |
commit | 3a4881346cc4afa6bcdbac692b064718d811a7f2 (patch) | |
tree | 64e09387450d37d22d14c03c3f514ed97e508883 /src/ft_draw_verline.c | |
parent | Preparing OS defines for later use (diff) | |
download | 42-cub3d-3a4881346cc4afa6bcdbac692b064718d811a7f2.tar.gz 42-cub3d-3a4881346cc4afa6bcdbac692b064718d811a7f2.tar.bz2 42-cub3d-3a4881346cc4afa6bcdbac692b064718d811a7f2.tar.xz 42-cub3d-3a4881346cc4afa6bcdbac692b064718d811a7f2.tar.zst 42-cub3d-3a4881346cc4afa6bcdbac692b064718d811a7f2.zip |
Fixed 1px bug
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_verline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index d526b6a..de54a3a 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -46,7 +46,7 @@ int8_t (y < 0) ? (y = 0) : 0; (y2 < 0) ? (y2 = 0) : 0; ft_draw_ceil(cl, y, x); - while (y < y2) + while (y <= y2) { d = y * 256 - cl->wlist->y_size * 128 + cl->rlist.line_h * 128; d = (d <= 0) ? (-d) : (d); |