summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-25 16:22:38 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-25 16:22:38 +0000
commit320ef3e4d83a25946320fe380bac409f99d67540 (patch)
treee63b14ddb0f250d797d2f2e5aac4e0663432fbc0 /apps
parentda7177749afc221b533e6db45aa9720fe907eab8 (diff)
downloadrockbox-320ef3e4d83a25946320fe380bac409f99d67540.tar.gz
rockbox-320ef3e4d83a25946320fe380bac409f99d67540.zip
ask_resume() now only reacts on button release events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4944 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 1faadf69f7..b915b39225 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -591,6 +591,7 @@ static int showdir(char *path, int start, int *dirfilter)
591 591
592static bool ask_resume(bool ask_once) 592static bool ask_resume(bool ask_once)
593{ 593{
594 int button;
594 bool stop = false; 595 bool stop = false;
595 596
596#ifdef HAVE_LCD_CHARCELLS 597#ifdef HAVE_LCD_CHARCELLS
@@ -618,7 +619,8 @@ static bool ask_resume(bool ask_once)
618 lcd_update(); 619 lcd_update();
619 620
620 while (!stop) { 621 while (!stop) {
621 switch (button_get(true)) { 622 button = button_get(true);
623 switch (button) {
622 case BUTTON_PLAY: 624 case BUTTON_PLAY:
623#ifdef BUTTON_RC_PLAY 625#ifdef BUTTON_RC_PLAY
624 case BUTTON_RC_PLAY: 626 case BUTTON_RC_PLAY:
@@ -640,7 +642,9 @@ static bool ask_resume(bool ask_once)
640 break; 642 break;
641 643
642 default: 644 default:
643 stop = true; 645 /* React only on release events */
646 if(button & BUTTON_REL)
647 stop = true;
644 break; 648 break;
645 } 649 }
646 } 650 }