From 3a4881346cc4afa6bcdbac692b064718d811a7f2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 23 Feb 2020 00:29:30 +0100 Subject: Fixed 1px bug --- src/ft_draw_verline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_draw_verline.c') 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); -- cgit v1.2.3