mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Since some code isn't used if no ON button exist, we need to ifdef around
them to prevent compiler warning(s). We should make more code use a different key instead of ON for the models that don't have one! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4154 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7df25eb23c
commit
8a935f6c4d
1 changed files with 4 additions and 0 deletions
|
|
@ -117,7 +117,9 @@ static void update_display_line(int line, bool scroll);
|
|||
static void scroll_display(int lines);
|
||||
static void update_first_index(void);
|
||||
static bool update_playlist(bool force);
|
||||
#ifdef BUTTON_ON
|
||||
static int onplay_menu(int index);
|
||||
#endif
|
||||
|
||||
/* Initialize the playlist viewer */
|
||||
static bool initialize(void)
|
||||
|
|
@ -563,6 +565,7 @@ static bool update_playlist(bool force)
|
|||
return true;
|
||||
}
|
||||
|
||||
#ifdef BUTTON_ON
|
||||
/* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen.
|
||||
Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist
|
||||
changed. */
|
||||
|
|
@ -622,6 +625,7 @@ static int onplay_menu(int index)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Main viewer function */
|
||||
bool playlist_viewer(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue