forked from len0rd/rockbox
use splash() when a new language is loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3466 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e51cbc5579
commit
8aafcf88f8
1 changed files with 1 additions and 17 deletions
18
apps/tree.c
18
apps/tree.c
|
@ -904,23 +904,7 @@ bool dirbrowse(char *root)
|
|||
if(!lang_load(buf)) {
|
||||
set_file(buf, global_settings.lang_file,
|
||||
MAX_FILENAME);
|
||||
|
||||
lcd_clear_display();
|
||||
#ifdef HAVE_LCD_CHARCELLS
|
||||
lcd_puts(0, 0, str(LANG_LANGUAGE_LOADED));
|
||||
#else
|
||||
lcd_getstringsize(str(LANG_LANGUAGE_LOADED),
|
||||
&fw, &fh);
|
||||
if(fw>LCD_WIDTH)
|
||||
fw=0;
|
||||
else
|
||||
fw=LCD_WIDTH/2 - fw/2;
|
||||
|
||||
lcd_putsxy(fw, LCD_HEIGHT/2 - fh/2,
|
||||
str(LANG_LANGUAGE_LOADED));
|
||||
#endif
|
||||
lcd_update();
|
||||
sleep(HZ);
|
||||
splash(HZ, 0, true, str(LANG_LANGUAGE_LOADED));
|
||||
restore = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue