diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/quickscreen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/gui/quickscreen.c b/apps/gui/quickscreen.c index 9465a2e5af..8a6c51e8c7 100644 --- a/apps/gui/quickscreen.c +++ b/apps/gui/quickscreen.c | |||
@@ -59,7 +59,10 @@ void gui_quickscreen_draw(struct gui_quickscreen * qs, struct screen * display) | |||
59 | display->has_buttonbar=false; | 59 | display->has_buttonbar=false; |
60 | #endif | 60 | #endif |
61 | gui_textarea_clear(display); | 61 | gui_textarea_clear(display); |
62 | display->setfont(FONT_SYSFIXED); | 62 | if (display->height / display->char_height < 7) /* we need at leats 7 lines */ |
63 | { | ||
64 | display->setfont(FONT_SYSFIXED); | ||
65 | } | ||
63 | display->getstringsize("A", NULL, &font_h); | 66 | display->getstringsize("A", NULL, &font_h); |
64 | 67 | ||
65 | /* Displays the first line of text */ | 68 | /* Displays the first line of text */ |