summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-04 13:04:15 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-04 13:04:15 +0000
commit4de9fbeda6d38adb197399156f69d034837a9562 (patch)
tree694e98ed6904704285b4cc16b7a52208151f0695
parent2a62f57ebf1a0cd9fdf85f0077b702dbfbcc1dbd (diff)
downloadrockbox-4de9fbeda6d38adb197399156f69d034837a9562.tar.gz
rockbox-4de9fbeda6d38adb197399156f69d034837a9562.tar.bz2
rockbox-4de9fbeda6d38adb197399156f69d034837a9562.zip
Use the user font in the quickscreen if it fits. Still uses
LANG_SYSFONT_x... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12587 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/quickscreen.c5
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)
display->has_buttonbar=false;
#endif
gui_textarea_clear(display);
- display->setfont(FONT_SYSFIXED);
+ if (display->height / display->char_height < 7) /* we need at leats 7 lines */
+ {
+ display->setfont(FONT_SYSFIXED);
+ }
display->getstringsize("A", NULL, &font_h);
/* Displays the first line of text */