From 002635e73c2ce724a132311f17bab6d6eea11157 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 24 Feb 2020 19:01:23 +0100 Subject: Bug fix, 1px bug is back --- src/ft_draw_verline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c index 7edac71..e1bcb16 100644 --- a/src/ft_draw_verline.c +++ b/src/ft_draw_verline.c @@ -78,7 +78,7 @@ int8_t ft_draw_ceil(cl, y, x); (cl->rlist.line_h <= 0) ? (cl->rlist.line_h = 1) : 0; /* ft_draw_ceil_tex(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); -- cgit v1.2.3