Skip to content

Commit

Permalink
Merged in Hackwerk/ugfx/drawstringfix (pull request qmk#25)
Browse files Browse the repository at this point in the history
Fix clipping of gdispGDrawString.
  • Loading branch information
Joel Bodenmann committed Jul 13, 2016
2 parents 9ac3c36 + ff6d26c commit be3433e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gdisp/gdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit be3433e

Please sign in to comment.