summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 07:39:57 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-07-26 07:39:57 +0000
commitb73caf745fc764e8fa50ff2306706a1de314a8cd (patch)
treeca5ee3afe83206563b5e87aace028467e39c4ad2 /apps
parent0c01305eb9a5cb5d10ed7af4d4eb66b0a998141e (diff)
downloadrockbox-b73caf745fc764e8fa50ff2306706a1de314a8cd.tar.gz
rockbox-b73caf745fc764e8fa50ff2306706a1de314a8cd.zip
Ignore repeat button events in the shutdown confirmation screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/screens.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/screens.c b/apps/screens.c
index ff39258424..4d48372890 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -1115,8 +1115,10 @@ bool shutdown_screen(void)
1115 /* Return if any other button was pushed, or if there 1115 /* Return if any other button was pushed, or if there
1116 was a timeout. We ignore RELEASE events, since we may 1116 was a timeout. We ignore RELEASE events, since we may
1117 have been called by a button down event, and the user might 1117 have been called by a button down event, and the user might
1118 not have released the button yet. */ 1118 not have released the button yet.
1119 if(!(button & BUTTON_REL)) 1119 We also ignore REPEAT events, since we don't want to
1120 remove the splash when the user holds OFF to shut down. */
1121 if(!(button & (BUTTON_REL | BUTTON_REPEAT)))
1120 done = true; 1122 done = true;
1121 break; 1123 break;
1122 } 1124 }