summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorKjell Ericson <kjell@haxx.se>2003-01-23 14:28:16 +0000
committerKjell Ericson <kjell@haxx.se>2003-01-23 14:28:16 +0000
commit767d604bcd839ef996aad8b9ab1e394aca26a95c (patch)
tree7fabc73bcb938d8cc02bbfbfd20d9a3cb31a5d74 /apps/tree.c
parentf5d9584eacc2eeaea7665169a12df4055c5d1de1 (diff)
downloadrockbox-767d604bcd839ef996aad8b9ab1e394aca26a95c.tar.gz
rockbox-767d604bcd839ef996aad8b9ab1e394aca26a95c.zip
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.c9
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
773static bool handle_on(int* ds, int* dc, int numentries, int tree_max_on_screen) 774static 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 {