Avoid TREE_RUN trailing release event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5275 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fb0739bdf0
commit
6239cdd898
1 changed files with 6 additions and 1 deletions
|
@ -827,7 +827,7 @@ bool playlist_viewer_ex(char* filename)
|
||||||
bool update=true; /* update display */
|
bool update=true; /* update display */
|
||||||
bool cursor_on=true; /* used for flashing cursor */
|
bool cursor_on=true; /* used for flashing cursor */
|
||||||
int old_cursor_pos; /* last cursor position */
|
int old_cursor_pos; /* last cursor position */
|
||||||
int button;
|
int button, lastbutton = BUTTON_NONE;
|
||||||
|
|
||||||
if (!initialize(filename, false))
|
if (!initialize(filename, false))
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -931,6 +931,10 @@ bool playlist_viewer_ex(char* filename)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case TREE_RUN:
|
case TREE_RUN:
|
||||||
|
#ifdef TREE_RUN_PRE
|
||||||
|
if (lastbutton != TREE_RUN_PRE)
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
if (viewer.move_track >= 0)
|
if (viewer.move_track >= 0)
|
||||||
{
|
{
|
||||||
/* Move track */
|
/* Move track */
|
||||||
|
@ -1057,6 +1061,7 @@ bool playlist_viewer_ex(char* filename)
|
||||||
cursor_on = true;
|
cursor_on = true;
|
||||||
update = false;
|
update = false;
|
||||||
}
|
}
|
||||||
|
lastbutton = button;
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
Loading…
Reference in a new issue