From ff6d26c70feb169d17adb3a68c41d92e6a71f5d7 Mon Sep 17 00:00:00 2001 From: Martijn Stommels Date: Sun, 10 Jul 2016 16:15:15 +0200 Subject: Fix clipping of gdispGDrawString. --- src/gdisp/gdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c index 3c0bab9c..7b2a2b2d 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -3231,7 +3231,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co g->t.font = font; g->t.clipx0 = x; g->t.clipy0 = y; - g->t.clipx1 = x + mf_get_string_width(font, str, 0, 0); + g->t.clipx1 = x + mf_get_string_width(font, str, 0, 0) + font->baseline_x; g->t.clipy1 = y + font->height; g->t.color = color; -- cgit v1.2.3