Merged in Hackwerk/ugfx/drawstringfix (pull request #25)
Fix clipping of gdispGDrawString.
This commit is contained in:
commit
be3433e930
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue