mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
the splash should set the viewport to NULL untill we start passing it a vp. (not any time soon though)
"fix" FS#9044 by changing the delete dir screen to use the splash instead so it doesnt have to worry about the statusbar height git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17654 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0501fb016c
commit
0792596e17
2 changed files with 5 additions and 6 deletions
|
@ -214,7 +214,10 @@ void gui_syncsplash(int ticks, const char *fmt, ...)
|
||||||
fmt = P2STR((unsigned char *)fmt);
|
fmt = P2STR((unsigned char *)fmt);
|
||||||
va_start( ap, fmt );
|
va_start( ap, fmt );
|
||||||
FOR_NB_SCREENS(i)
|
FOR_NB_SCREENS(i)
|
||||||
|
{
|
||||||
|
screens[i].set_viewport(NULL);
|
||||||
splash(&(screens[i]), fmt, ap);
|
splash(&(screens[i]), fmt, ap);
|
||||||
|
}
|
||||||
va_end( ap );
|
va_end( ap );
|
||||||
|
|
||||||
if(ticks)
|
if(ticks)
|
||||||
|
|
|
@ -460,7 +460,6 @@ static int remove_dir(char* dirname, int len)
|
||||||
int result = 0;
|
int result = 0;
|
||||||
DIR* dir;
|
DIR* dir;
|
||||||
int dirlen = strlen(dirname);
|
int dirlen = strlen(dirname);
|
||||||
int i;
|
|
||||||
|
|
||||||
dir = opendir(dirname);
|
dir = opendir(dirname);
|
||||||
if (!dir)
|
if (!dir)
|
||||||
|
@ -475,10 +474,7 @@ static int remove_dir(char* dirname, int len)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
dirname[dirlen] ='\0';
|
dirname[dirlen] ='\0';
|
||||||
FOR_NB_SCREENS(i){
|
gui_syncsplash(0, dirname);
|
||||||
screens[i].puts(0,1,dirname);
|
|
||||||
screens[i].update();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* append name to current directory */
|
/* append name to current directory */
|
||||||
snprintf(dirname+dirlen, len-dirlen, "/%s", entry->d_name);
|
snprintf(dirname+dirlen, len-dirlen, "/%s", entry->d_name);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue