diff options
author | Kjell Ericson <kjell@haxx.se> | 2003-01-23 14:28:16 +0000 |
---|---|---|
committer | Kjell Ericson <kjell@haxx.se> | 2003-01-23 14:28:16 +0000 |
commit | 767d604bcd839ef996aad8b9ab1e394aca26a95c (patch) | |
tree | 7fabc73bcb938d8cc02bbfbfd20d9a3cb31a5d74 /apps/tree.c | |
parent | f5d9584eacc2eeaea7665169a12df4055c5d1de1 (diff) |
Removed unnecessary calls to lcd_stop_scroll().
Changed all lcd_scroll_pause() to lcd_stop_scroll().
Updated the tree system for new scroll-behaviour.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3154 a1c6a512-1295-4272-9138-f99709370657
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) else snprintf(buf, sizeof buf, "%s/%s", dir, file); - lcd_stop_scroll(); lcd_clear_display(); #ifdef HAVE_LCD_BITMAP { @@ -770,6 +769,8 @@ static int onplay_screen(char* dir, char* file) return false; } + + static bool handle_on(int* ds, int* dc, int numentries, int tree_max_on_screen) { bool exit = false; @@ -864,6 +865,7 @@ bool dirbrowse(char *root) bool reload_root = false; int lastfilter = global_settings.dirfilter; bool lastsortcase = global_settings.sort_case; + int lastdircursor=-1; #ifdef HAVE_LCD_BITMAP int fw, fh; lcd_getstringsize("A", &fw, &fh); @@ -1275,8 +1277,11 @@ bool dirbrowse(char *root) /* if MP3 filter is on, cut off the extension */ if(lasti!=i || restore) { - lasti=i; lcd_stop_scroll(); + if (lastdircursor!=-1) + lcd_puts(LINE_X, lastdircursor, dircache[lasti].name); + lasti=i; + lastdircursor=dircursor; if (global_settings.dirfilter == SHOW_MUSIC && (dircache[i].attr & (TREE_ATTR_M3U|TREE_ATTR_MPA))) { |