diff options
author | Joel Bodenmann <info@b-electronics.ch> | 2016-07-13 12:44:22 +0200 |
---|---|---|
committer | Joel Bodenmann <info@b-electronics.ch> | 2016-07-13 12:44:22 +0200 |
commit | be3433e930506577c8a12df898ed131dbc138bc1 (patch) | |
tree | 8ab804d29cf9df904da3743a4f679c9856f334ab | |
parent | 9ac3c368b4de8e2f38bad56262c75d3310c8814b (diff) | |
parent | ff6d26c70feb169d17adb3a68c41d92e6a71f5d7 (diff) | |
download | uGFX-be3433e930506577c8a12df898ed131dbc138bc1.tar.gz uGFX-be3433e930506577c8a12df898ed131dbc138bc1.tar.bz2 uGFX-be3433e930506577c8a12df898ed131dbc138bc1.zip |
Merged in Hackwerk/ugfx/drawstringfix (pull request #25)
Fix clipping of gdispGDrawString.
-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; |