forked from len0rd/rockbox
Fixed the disappearing shuffle text
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab21668ae5
commit
18a2dc3eaa
1 changed files with 11 additions and 3 deletions
14
apps/wps.c
14
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue