From e72e5e87497744410fb62843ef852d26bf5277d2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 6 May 2017 21:54:07 +0200 Subject: Bug fix --- src/lib/libkogata/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/libkogata/draw.c b/src/lib/libkogata/draw.c index 1b4f225..66da6f0 100644 --- a/src/lib/libkogata/draw.c +++ b/src/lib/libkogata/draw.c @@ -223,7 +223,7 @@ inline void g_region_vline(fb_t *fb, fb_region_t *reg, int x, int y, int h, colo if (y >= reg->h) return; if (y + h < 0) return; if (y + h > reg->h) h = reg->h - y; - if (x < 0 || x >= reg->h) return; + if (x < 0 || x >= reg->w) return; if (h <= 0) return; g_vline(fb, reg->x + x, reg->y + y, h, c); -- cgit v1.2.3