forked from len0rd/rockbox
allow the plugin playback control menu to be put in a viewport.
fix text editor so it is actually possible to get to the control menu if the file hasnt been changed (its in the regular menu now) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17221 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
45f6469ad1
commit
33b785e40b
10 changed files with 19 additions and 12 deletions
|
@ -108,8 +108,9 @@ void playback_control_init(struct plugin_api* newapi)
|
|||
api = newapi;
|
||||
}
|
||||
|
||||
bool playback_control(struct plugin_api* newapi)
|
||||
bool playback_control(struct plugin_api* newapi,
|
||||
struct viewport parent[NB_SCREENS])
|
||||
{
|
||||
api = newapi;
|
||||
return api->do_menu(&playback_control_menu, NULL, NULL, false) == MENU_ATTACHED_USB;
|
||||
return api->do_menu(&playback_control_menu, NULL, parent, false) == MENU_ATTACHED_USB;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ extern const struct menu_item_ex playback_control_menu;
|
|||
void playback_control_init(struct plugin_api* newapi);
|
||||
|
||||
/* Use this if your menu still uses the old menu api */
|
||||
bool playback_control(struct plugin_api* api);
|
||||
bool playback_control(struct plugin_api* api,
|
||||
struct viewport parent[NB_SCREENS]);
|
||||
|
||||
#endif /* __PLAYBACK_CONTROL_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue