summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-09-04 05:47:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-09-04 05:47:09 +0000
commit18a2dc3eaae9abeffd1daf8ff9d370313fdc3aec (patch)
treead5f250dcb217da96ce9ee98359710fa370dd1b8
parentab21668ae577a080e564ecd43a3b57649ecd333f (diff)
downloadrockbox-18a2dc3eaae9abeffd1daf8ff9d370313fdc3aec.zip
rockbox-18a2dc3eaae9abeffd1daf8ff9d370313fdc3aec.tar.gz
rockbox-18a2dc3eaae9abeffd1daf8ff9d370313fdc3aec.tar.bz2
rockbox-18a2dc3eaae9abeffd1daf8ff9d370313fdc3aec.tar.xz
Fixed the disappearing shuffle text
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2168 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index bed6ca0..2368a57 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -595,13 +595,19 @@ static bool menu(void)
bool f2_screen(void)
{
bool exit = false;
+ int w, h;
+ char buf[32];
+
+ /* Get the font height */
+#ifdef LCD_PROPFONTS
+ lcd_getstringsize("A",0,&w,&h);
+#else
+ lcd_getfontsize(0,&w,&h);
+#endif
lcd_stop_scroll();
while (!exit) {
- int w,h;
- char buf[32];
-
lcd_clear_display();
lcd_putsxy(0, LCD_HEIGHT/2 - h*2, "Shuffle", 0);
@@ -613,6 +619,8 @@ bool f2_screen(void)
snprintf(buf, sizeof buf, "Dir filter: %s",
global_settings.mp3filter ? "on" : "off");
+
+ /* Get the string width and height */
#ifdef LCD_PROPFONTS
lcd_getstringsize(buf,0,&w,&h);
#else