diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 0cb958447f..e732794d2a 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -636,7 +636,6 @@ static int onplay_screen(char* dir, char* file) | |||
636 | else | 636 | else |
637 | snprintf(buf, sizeof buf, "%s/%s", dir, file); | 637 | snprintf(buf, sizeof buf, "%s/%s", dir, file); |
638 | 638 | ||
639 | lcd_stop_scroll(); | ||
640 | lcd_clear_display(); | 639 | lcd_clear_display(); |
641 | #ifdef HAVE_LCD_BITMAP | 640 | #ifdef HAVE_LCD_BITMAP |
642 | { | 641 | { |
@@ -770,6 +769,8 @@ static int onplay_screen(char* dir, char* file) | |||
770 | return false; | 769 | return false; |
771 | } | 770 | } |
772 | 771 | ||
772 | |||
773 | |||
773 | static bool handle_on(int* ds, int* dc, int numentries, int tree_max_on_screen) | 774 | static bool handle_on(int* ds, int* dc, int numentries, int tree_max_on_screen) |
774 | { | 775 | { |
775 | bool exit = false; | 776 | bool exit = false; |
@@ -864,6 +865,7 @@ bool dirbrowse(char *root) | |||
864 | bool reload_root = false; | 865 | bool reload_root = false; |
865 | int lastfilter = global_settings.dirfilter; | 866 | int lastfilter = global_settings.dirfilter; |
866 | bool lastsortcase = global_settings.sort_case; | 867 | bool lastsortcase = global_settings.sort_case; |
868 | int lastdircursor=-1; | ||
867 | #ifdef HAVE_LCD_BITMAP | 869 | #ifdef HAVE_LCD_BITMAP |
868 | int fw, fh; | 870 | int fw, fh; |
869 | lcd_getstringsize("A", &fw, &fh); | 871 | lcd_getstringsize("A", &fw, &fh); |
@@ -1275,8 +1277,11 @@ bool dirbrowse(char *root) | |||
1275 | 1277 | ||
1276 | /* if MP3 filter is on, cut off the extension */ | 1278 | /* if MP3 filter is on, cut off the extension */ |
1277 | if(lasti!=i || restore) { | 1279 | if(lasti!=i || restore) { |
1278 | lasti=i; | ||
1279 | lcd_stop_scroll(); | 1280 | lcd_stop_scroll(); |
1281 | if (lastdircursor!=-1) | ||
1282 | lcd_puts(LINE_X, lastdircursor, dircache[lasti].name); | ||
1283 | lasti=i; | ||
1284 | lastdircursor=dircursor; | ||
1280 | if (global_settings.dirfilter == SHOW_MUSIC && | 1285 | if (global_settings.dirfilter == SHOW_MUSIC && |
1281 | (dircache[i].attr & (TREE_ATTR_M3U|TREE_ATTR_MPA))) | 1286 | (dircache[i].attr & (TREE_ATTR_M3U|TREE_ATTR_MPA))) |
1282 | { | 1287 | { |