diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-26 03:35:24 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-03-26 03:35:24 +0000 |
| commit | 5ca15399690a686646d4739b3f4c51c62cc88b68 (patch) | |
| tree | 1c12dc34bae30aedcb38bf5ceed8a2fcedc250c8 /apps/plugins/lib | |
| parent | af395f4db6ad7b83f9d9afefb1c0ceeedd140a45 (diff) | |
| download | rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.zip rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.tar.gz rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.tar.bz2 rockbox-5ca15399690a686646d4739b3f4c51c62cc88b68.tar.xz | |
the menu and list now accepts a parent viewport to draw in (and the menu can be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/oldmenuapi.c | 2 | ||||
| -rw-r--r-- | apps/plugins/lib/playback_control.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index 07681a0..c21e55f 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -74,7 +74,7 @@ int menu_init(struct plugin_api *api, const struct menu_item* mitems, return -1; menus[menu].items = (struct menu_item*)mitems; /* de-const */ rb->gui_synclist_init(&(menus[menu].synclist), - &menu_get_itemname, &menus[menu], false, 1); + &menu_get_itemname, &menus[menu], false, 1, NULL); rb->gui_synclist_set_icon_callback(&(menus[menu].synclist), NULL); rb->gui_synclist_set_nb_items(&(menus[menu].synclist), count); menus[menu].callback = callback; diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c index bc8f1c7..2bed02e 100644 --- a/apps/plugins/lib/playback_control.c +++ b/apps/plugins/lib/playback_control.c @@ -111,5 +111,5 @@ void playback_control_init(struct plugin_api* newapi) bool playback_control(struct plugin_api* newapi) { api = newapi; - return api->do_menu(&playback_control_menu, NULL) == MENU_ATTACHED_USB; + return api->do_menu(&playback_control_menu, NULL, NULL, false) == MENU_ATTACHED_USB; } |