diff options
author | Joel Bodenmann <joel@embedded.pro> | 2017-05-24 10:52:44 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@embedded.pro> | 2017-05-24 10:52:44 +0200 |
commit | 64a8f8dde1d51fd372ab051681cbfc7cbb2ae52f (patch) | |
tree | 246fcb2eea9eda8e6c383d2b93c9a711c7043dcb | |
parent | d581b08bcfd296650c582b78d33d477b928a55b5 (diff) | |
download | uGFX-64a8f8dde1d51fd372ab051681cbfc7cbb2ae52f.tar.gz uGFX-64a8f8dde1d51fd372ab051681cbfc7cbb2ae52f.tar.bz2 uGFX-64a8f8dde1d51fd372ab051681cbfc7cbb2ae52f.zip |
Fixing clipping issue with 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 3baef9de..5674f29b 100644 --- a/src/gdisp/gdisp.c +++ b/src/gdisp/gdisp.c @@ -3395,7 +3395,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 = 32768; //x + mf_get_string_width(font, str, 0, 0) + font->baseline_x; + g->t.clipx1 = 32767; //x + mf_get_string_width(font, str, 0, 0) + font->baseline_x; g->t.clipy1 = y + font->height; g->t.color = color; |