diff options
author | Martijn Stommels <martijn@martijnpc.nl> | 2016-07-10 16:15:15 +0200 |
---|---|---|
committer | Martijn Stommels <martijn@martijnpc.nl> | 2016-07-11 13:26:27 +0200 |
commit | ff6d26c70feb169d17adb3a68c41d92e6a71f5d7 (patch) | |
tree | 8ab804d29cf9df904da3743a4f679c9856f334ab /src/gdisp/gdisp.c | |
parent | 9ac3c368b4de8e2f38bad56262c75d3310c8814b (diff) | |
download | uGFX-ff6d26c70feb169d17adb3a68c41d92e6a71f5d7.tar.gz uGFX-ff6d26c70feb169d17adb3a68c41d92e6a71f5d7.tar.bz2 uGFX-ff6d26c70feb169d17adb3a68c41d92e6a71f5d7.zip |
Fix clipping of gdispGDrawString.
Diffstat (limited to 'src/gdisp/gdisp.c')
-rw-r--r-- | src/gdisp/gdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |