diff options
Diffstat (limited to 'demos/modules/gdisp_text/main.c')
-rw-r--r-- | demos/modules/gdisp_text/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/modules/gdisp_text/main.c b/demos/modules/gdisp_text/main.c index 907e84be..4dc45f71 100644 --- a/demos/modules/gdisp_text/main.c +++ b/demos/modules/gdisp_text/main.c @@ -25,7 +25,7 @@ int main(void) {
coord_t width, height;
font_t font1, font2, font3, font4;
- const char *msg;
+ const char *msg;
halInit();
chSysInit();
@@ -47,6 +47,7 @@ int main(void) { // Display large numbers on the right (measuring the string)
msg = "123456";
gdispDrawString(width-gdispGetStringWidth(msg, font4)-3, 3, msg, font4, Green);
+
// Display the font name under it.
msg = gdispGetFontName(font4);
gdispDrawString(width-gdispGetStringWidth(msg, font1)-3, 20, msg, font1, Green);
|