forked from len0rd/rockbox
Whitespace/indent/codestyle tweaks, should make no functional difference
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15722 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
21ac3110f1
commit
ade8ae9acb
1 changed files with 17 additions and 20 deletions
19
apps/tree.c
19
apps/tree.c
|
@ -390,8 +390,8 @@ static int update_dir(void)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* if the tc.currdir has been changed, reload it ...*/
|
/* if the tc.currdir has been changed, reload it ...*/
|
||||||
if (strncmp(tc.currdir, lastdir, sizeof(lastdir)) || reload_dir) {
|
if (strncmp(tc.currdir, lastdir, sizeof(lastdir)) || reload_dir)
|
||||||
|
{
|
||||||
if (ft_load(&tc, NULL) < 0)
|
if (ft_load(&tc, NULL) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
strcpy(lastdir, tc.currdir);
|
strcpy(lastdir, tc.currdir);
|
||||||
|
@ -415,8 +415,7 @@ static int update_dir(void)
|
||||||
#ifdef HAVE_TAGCACHE
|
#ifdef HAVE_TAGCACHE
|
||||||
!id3db &&
|
!id3db &&
|
||||||
#endif
|
#endif
|
||||||
(tc.dirfull ||
|
(tc.dirfull || tc.filesindir == global_settings.max_files_in_dir) )
|
||||||
tc.filesindir == global_settings.max_files_in_dir) )
|
|
||||||
{
|
{
|
||||||
gui_syncsplash(HZ, ID2P(LANG_SHOWDIR_BUFFER_FULL));
|
gui_syncsplash(HZ, ID2P(LANG_SHOWDIR_BUFFER_FULL));
|
||||||
}
|
}
|
||||||
|
@ -975,17 +974,15 @@ static bool add_dir(char* dirname, int len, int fd)
|
||||||
gui_textarea_update(&screens[i]);
|
gui_textarea_update(&screens[i]);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
x = 10;
|
|
||||||
if (plsize > 999)
|
if (plsize > 999)
|
||||||
x=7;
|
x=7;
|
||||||
else {
|
else if (plsize > 99)
|
||||||
if (plsize > 99)
|
|
||||||
x=8;
|
x=8;
|
||||||
else {
|
else if (plsize > 9)
|
||||||
if (plsize > 9)
|
|
||||||
x=9;
|
x=9;
|
||||||
}
|
else
|
||||||
}
|
x = 10;
|
||||||
|
|
||||||
FOR_NB_SCREENS(i) {
|
FOR_NB_SCREENS(i) {
|
||||||
screens[i].puts(x,0,buf);
|
screens[i].puts(x,0,buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue