summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-10-14 07:59:00 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-10-14 07:59:00 +0000
commit6239cdd898ed3c6661cf879436ebcbb9528288af (patch)
treecc849b7f725c5b7fd85c45ea1b75d0244e1906f0
parentfb0739bdf0a59ebf8b8695415cc627d23100667e (diff)
Avoid TREE_RUN trailing release event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5275 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist_viewer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c
index 98f04b8eaf..266b21cdd7 100644
--- a/apps/playlist_viewer.c
+++ b/apps/playlist_viewer.c
@@ -827,7 +827,7 @@ bool playlist_viewer_ex(char* filename)
bool update=true; /* update display */
bool cursor_on=true; /* used for flashing cursor */
int old_cursor_pos; /* last cursor position */
- int button;
+ int button, lastbutton = BUTTON_NONE;
if (!initialize(filename, false))
goto exit;
@@ -931,6 +931,10 @@ bool playlist_viewer_ex(char* filename)
#endif
case TREE_RUN:
+#ifdef TREE_RUN_PRE
+ if (lastbutton != TREE_RUN_PRE)
+ break;
+#endif
if (viewer.move_track >= 0)
{
/* Move track */
@@ -1057,6 +1061,7 @@ bool playlist_viewer_ex(char* filename)
cursor_on = true;
update = false;
}
+ lastbutton = button;
}
exit: