Fix clipping of gdispGFillString()

This commit is contained in:
Joel Bodenmann 2016-07-13 12:54:13 +02:00
parent be3433e930
commit 9bd3dd6ce8

View File

@ -3242,7 +3242,7 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co
void gdispGFillString(GDisplay *g, coord_t x, coord_t y, const char *str, font_t font, color_t color, color_t bgcolor) {
MUTEX_ENTER(g);
g->p.cx = mf_get_string_width(font, str, 0, 0);
g->p.cx = mf_get_string_width(font, str, 0, 0) + font->baseline_x;
g->p.cy = font->height;
g->t.font = font;
g->t.clipx0 = g->p.x = x;