From 5ca15399690a686646d4739b3f4c51c62cc88b68 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 26 Mar 2008 03:35:24 +0000 Subject: 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 --- apps/plugins/clock/clock_menu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/plugins/clock') diff --git a/apps/plugins/clock/clock_menu.c b/apps/plugins/clock/clock_menu.c index 4cbf46a..a515e87 100644 --- a/apps/plugins/clock/clock_menu.c +++ b/apps/plugins/clock/clock_menu.c @@ -57,7 +57,7 @@ static const struct opt_items hour_format_text[] = { bool menu_mode_selector(void){ MENUITEM_STRINGLIST(menu,"Mode Selector",NULL, "Analog", "Digital", "Binary"); - if(rb->do_menu(&menu, &clock_settings.mode) >=0) + if(rb->do_menu(&menu, &clock_settings.mode, NULL, false) >=0) return(true); return(false); } @@ -73,7 +73,7 @@ void menu_analog_settings(void) "Show Second Hand","Show Border"); while(result>=0){ - result=rb->do_menu(&menu, &selection); + result=rb->do_menu(&menu, &selection, NULL, false); switch(result){ case 0: rb->set_option("Show Date", &clock_settings.analog.show_date, @@ -103,7 +103,7 @@ void menu_digital_settings(void){ "Blinking Colon"); while(result>=0){ - result=rb->do_menu(&menu, &selection); + result=rb->do_menu(&menu, &selection, NULL, false); switch(result){ case 0: rb->set_option("Show Seconds", @@ -148,7 +148,7 @@ void menu_general_settings(void){ "Idle Poweroff (temporary)"); while(result>=0){ - result=rb->do_menu(&menu, &selection); + result=rb->do_menu(&menu, &selection, NULL, false); switch(result){ case 0: rb->set_option("Hour format", @@ -211,7 +211,7 @@ bool main_menu(void){ "Mode Settings","General Settings","Quit"); while(!done){ - switch(rb->do_menu(&menu, &selection)){ + switch(rb->do_menu(&menu, &selection, NULL, false)){ case 0: done = true; break; -- cgit v1.1