diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/chessbox/chessbox.c | 4 | ||||
-rw-r--r-- | apps/plugins/chessbox/chessbox_pgn.c | 2 | ||||
-rw-r--r-- | apps/plugins/chopper.c | 2 | ||||
-rw-r--r-- | apps/plugins/clock/clock_menu.c | 10 | ||||
-rw-r--r-- | apps/plugins/dice.c | 2 | ||||
-rw-r--r-- | apps/plugins/disktidy.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/oldmenuapi.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/playback_control.c | 2 | ||||
-rw-r--r-- | apps/plugins/minesweeper.c | 2 | ||||
-rw-r--r-- | apps/plugins/pictureflow.c | 4 | ||||
-rw-r--r-- | apps/plugins/properties.c | 2 | ||||
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 2 | ||||
-rw-r--r-- | apps/plugins/shortcuts/shortcuts_view.c | 2 | ||||
-rw-r--r-- | apps/plugins/snake.c | 2 | ||||
-rw-r--r-- | apps/plugins/sokoban.c | 2 | ||||
-rw-r--r-- | apps/plugins/star.c | 18 | ||||
-rw-r--r-- | apps/plugins/superdom.c | 18 | ||||
-rw-r--r-- | apps/plugins/test_codec.c | 2 | ||||
-rw-r--r-- | apps/plugins/text_editor.c | 8 | ||||
-rw-r--r-- | apps/plugins/vu_meter.c | 2 | ||||
-rw-r--r-- | apps/plugins/wavrecord.c | 2 | ||||
-rw-r--r-- | apps/plugins/wormlet.c | 2 | ||||
-rw-r--r-- | apps/plugins/xobox.c | 2 |
23 files changed, 54 insertions, 42 deletions
diff --git a/apps/plugins/chessbox/chessbox.c b/apps/plugins/chessbox/chessbox.c index 920def82d5..4129a3c1fb 100644 --- a/apps/plugins/chessbox/chessbox.c +++ b/apps/plugins/chessbox/chessbox.c | |||
@@ -393,7 +393,7 @@ static int cb_menu_viewer(void) | |||
393 | 393 | ||
394 | while(!menu_quit) | 394 | while(!menu_quit) |
395 | { | 395 | { |
396 | switch(rb->do_menu(&menu, &selection)) | 396 | switch(rb->do_menu(&menu, &selection, NULL, false)) |
397 | { | 397 | { |
398 | case 0: | 398 | case 0: |
399 | menu_quit = true; | 399 | menu_quit = true; |
@@ -595,7 +595,7 @@ static int cb_menu(void) | |||
595 | 595 | ||
596 | while(!menu_quit) | 596 | while(!menu_quit) |
597 | { | 597 | { |
598 | switch(rb->do_menu(&menu, &selection)) | 598 | switch(rb->do_menu(&menu, &selection, NULL, false)) |
599 | { | 599 | { |
600 | case 0: | 600 | case 0: |
601 | menu_quit = true; | 601 | menu_quit = true; |
diff --git a/apps/plugins/chessbox/chessbox_pgn.c b/apps/plugins/chessbox/chessbox_pgn.c index b3e71de77f..6d18986f95 100644 --- a/apps/plugins/chessbox/chessbox_pgn.c +++ b/apps/plugins/chessbox/chessbox_pgn.c | |||
@@ -628,7 +628,7 @@ struct pgn_game_node* pgn_show_game_list(struct plugin_api* api, | |||
628 | } | 628 | } |
629 | 629 | ||
630 | 630 | ||
631 | rb->gui_synclist_init(&games_list, &get_game_text, first_game, false, 1); | 631 | rb->gui_synclist_init(&games_list, &get_game_text, first_game, false, 1, NULL); |
632 | rb->gui_synclist_set_title(&games_list, "Games", NOICON); | 632 | rb->gui_synclist_set_title(&games_list, "Games", NOICON); |
633 | rb->gui_synclist_set_icon_callback(&games_list, NULL); | 633 | rb->gui_synclist_set_icon_callback(&games_list, NULL); |
634 | rb->gui_synclist_set_nb_items(&games_list, i); | 634 | rb->gui_synclist_set_nb_items(&games_list, i); |
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index f359023678..71f62f44cc 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c | |||
@@ -684,7 +684,7 @@ static int chopMenu(int menunum) | |||
684 | rb->lcd_clear_display(); | 684 | rb->lcd_clear_display(); |
685 | 685 | ||
686 | while (!menu_quit) { | 686 | while (!menu_quit) { |
687 | switch(rb->do_menu(&menu, &result)) | 687 | switch(rb->do_menu(&menu, &result, NULL, false)) |
688 | { | 688 | { |
689 | case 0: /* Start New Game */ | 689 | case 0: /* Start New Game */ |
690 | menu_quit=true; | 690 | menu_quit=true; |
diff --git a/apps/plugins/clock/clock_menu.c b/apps/plugins/clock/clock_menu.c index 4cbf46af28..a515e87fc3 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[] = { | |||
57 | bool menu_mode_selector(void){ | 57 | bool menu_mode_selector(void){ |
58 | MENUITEM_STRINGLIST(menu,"Mode Selector",NULL, "Analog", | 58 | MENUITEM_STRINGLIST(menu,"Mode Selector",NULL, "Analog", |
59 | "Digital", "Binary"); | 59 | "Digital", "Binary"); |
60 | if(rb->do_menu(&menu, &clock_settings.mode) >=0) | 60 | if(rb->do_menu(&menu, &clock_settings.mode, NULL, false) >=0) |
61 | return(true); | 61 | return(true); |
62 | return(false); | 62 | return(false); |
63 | } | 63 | } |
@@ -73,7 +73,7 @@ void menu_analog_settings(void) | |||
73 | "Show Second Hand","Show Border"); | 73 | "Show Second Hand","Show Border"); |
74 | 74 | ||
75 | while(result>=0){ | 75 | while(result>=0){ |
76 | result=rb->do_menu(&menu, &selection); | 76 | result=rb->do_menu(&menu, &selection, NULL, false); |
77 | switch(result){ | 77 | switch(result){ |
78 | case 0: | 78 | case 0: |
79 | rb->set_option("Show Date", &clock_settings.analog.show_date, | 79 | rb->set_option("Show Date", &clock_settings.analog.show_date, |
@@ -103,7 +103,7 @@ void menu_digital_settings(void){ | |||
103 | "Blinking Colon"); | 103 | "Blinking Colon"); |
104 | 104 | ||
105 | while(result>=0){ | 105 | while(result>=0){ |
106 | result=rb->do_menu(&menu, &selection); | 106 | result=rb->do_menu(&menu, &selection, NULL, false); |
107 | switch(result){ | 107 | switch(result){ |
108 | case 0: | 108 | case 0: |
109 | rb->set_option("Show Seconds", | 109 | rb->set_option("Show Seconds", |
@@ -148,7 +148,7 @@ void menu_general_settings(void){ | |||
148 | "Idle Poweroff (temporary)"); | 148 | "Idle Poweroff (temporary)"); |
149 | 149 | ||
150 | while(result>=0){ | 150 | while(result>=0){ |
151 | result=rb->do_menu(&menu, &selection); | 151 | result=rb->do_menu(&menu, &selection, NULL, false); |
152 | switch(result){ | 152 | switch(result){ |
153 | case 0: | 153 | case 0: |
154 | rb->set_option("Hour format", | 154 | rb->set_option("Hour format", |
@@ -211,7 +211,7 @@ bool main_menu(void){ | |||
211 | "Mode Settings","General Settings","Quit"); | 211 | "Mode Settings","General Settings","Quit"); |
212 | 212 | ||
213 | while(!done){ | 213 | while(!done){ |
214 | switch(rb->do_menu(&menu, &selection)){ | 214 | switch(rb->do_menu(&menu, &selection, NULL, false)){ |
215 | case 0: | 215 | case 0: |
216 | done = true; | 216 | done = true; |
217 | break; | 217 | break; |
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c index 84bd3105dc..7688d91a07 100644 --- a/apps/plugins/dice.c +++ b/apps/plugins/dice.c | |||
@@ -177,7 +177,7 @@ bool dice_menu(struct dices * dice) { | |||
177 | 177 | ||
178 | 178 | ||
179 | while (!menu_quit) { | 179 | while (!menu_quit) { |
180 | switch(rb->do_menu(&menu, &selection)){ | 180 | switch(rb->do_menu(&menu, &selection, NULL, false)){ |
181 | case 0: | 181 | case 0: |
182 | menu_quit = true; | 182 | menu_quit = true; |
183 | result = true; | 183 | result = true; |
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index b32dce2737..c06afeac70 100644 --- a/apps/plugins/disktidy.c +++ b/apps/plugins/disktidy.c | |||
@@ -369,7 +369,7 @@ int tidy_lcd_menu(void) | |||
369 | 369 | ||
370 | while (!menu_quit) | 370 | while (!menu_quit) |
371 | { | 371 | { |
372 | switch(rb->do_menu(&menu, &selection)) | 372 | switch(rb->do_menu(&menu, &selection, NULL, false)) |
373 | { | 373 | { |
374 | 374 | ||
375 | case 0: | 375 | case 0: |
diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index 07681a0b18..c21e55f5fc 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, | |||
74 | return -1; | 74 | return -1; |
75 | menus[menu].items = (struct menu_item*)mitems; /* de-const */ | 75 | menus[menu].items = (struct menu_item*)mitems; /* de-const */ |
76 | rb->gui_synclist_init(&(menus[menu].synclist), | 76 | rb->gui_synclist_init(&(menus[menu].synclist), |
77 | &menu_get_itemname, &menus[menu], false, 1); | 77 | &menu_get_itemname, &menus[menu], false, 1, NULL); |
78 | rb->gui_synclist_set_icon_callback(&(menus[menu].synclist), NULL); | 78 | rb->gui_synclist_set_icon_callback(&(menus[menu].synclist), NULL); |
79 | rb->gui_synclist_set_nb_items(&(menus[menu].synclist), count); | 79 | rb->gui_synclist_set_nb_items(&(menus[menu].synclist), count); |
80 | menus[menu].callback = callback; | 80 | menus[menu].callback = callback; |
diff --git a/apps/plugins/lib/playback_control.c b/apps/plugins/lib/playback_control.c index bc8f1c735d..2bed02e7b0 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) | |||
111 | bool playback_control(struct plugin_api* newapi) | 111 | bool playback_control(struct plugin_api* newapi) |
112 | { | 112 | { |
113 | api = newapi; | 113 | api = newapi; |
114 | return api->do_menu(&playback_control_menu, NULL) == MENU_ATTACHED_USB; | 114 | return api->do_menu(&playback_control_menu, NULL, NULL, false) == MENU_ATTACHED_USB; |
115 | } | 115 | } |
diff --git a/apps/plugins/minesweeper.c b/apps/plugins/minesweeper.c index 0f3de2fb74..5066844347 100644 --- a/apps/plugins/minesweeper.c +++ b/apps/plugins/minesweeper.c | |||
@@ -498,7 +498,7 @@ enum minesweeper_status menu( void ) | |||
498 | 498 | ||
499 | while( !menu_quit ) | 499 | while( !menu_quit ) |
500 | { | 500 | { |
501 | switch( rb->do_menu( &menu, &selection ) ) | 501 | switch( rb->do_menu( &menu, &selection, NULL, false ) ) |
502 | { | 502 | { |
503 | case 0: | 503 | case 0: |
504 | result = MINESWEEPER_WIN; /* start playing */ | 504 | result = MINESWEEPER_WIN; /* start playing */ |
diff --git a/apps/plugins/pictureflow.c b/apps/plugins/pictureflow.c index 6e88138efc..02f0522f53 100644 --- a/apps/plugins/pictureflow.c +++ b/apps/plugins/pictureflow.c | |||
@@ -1541,7 +1541,7 @@ int settings_menu(void) { | |||
1541 | "Rebuild cache"); | 1541 | "Rebuild cache"); |
1542 | 1542 | ||
1543 | do { | 1543 | do { |
1544 | selection=rb->do_menu(&settings_menu,&selection); | 1544 | selection=rb->do_menu(&settings_menu,&selection, NULL, false); |
1545 | switch(selection) { | 1545 | switch(selection) { |
1546 | case 0: | 1546 | case 0: |
1547 | rb->set_bool("Show FPS", &show_fps); | 1547 | rb->set_bool("Show FPS", &show_fps); |
@@ -1604,7 +1604,7 @@ int main_menu(void) | |||
1604 | "Settings", "Return", "Quit"); | 1604 | "Settings", "Return", "Quit"); |
1605 | 1605 | ||
1606 | while (1) { | 1606 | while (1) { |
1607 | switch (rb->do_menu(&main_menu,&selection)) { | 1607 | switch (rb->do_menu(&main_menu,&selection, NULL, false)) { |
1608 | case 0: | 1608 | case 0: |
1609 | result = settings_menu(); | 1609 | result = settings_menu(); |
1610 | if ( result != 0 ) return result; | 1610 | if ( result != 0 ) return result; |
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 0811b00ed3..8b1f6ee636 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -305,7 +305,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
305 | prev_show_statusbar = rb->global_settings->statusbar; | 305 | prev_show_statusbar = rb->global_settings->statusbar; |
306 | rb->global_settings->statusbar = false; | 306 | rb->global_settings->statusbar = false; |
307 | 307 | ||
308 | rb->gui_synclist_init(&properties_lists, &get_props, file, false, 1); | 308 | rb->gui_synclist_init(&properties_lists, &get_props, file, false, 1, NULL); |
309 | rb->gui_synclist_set_title(&properties_lists, its_a_dir ? | 309 | rb->gui_synclist_set_title(&properties_lists, its_a_dir ? |
310 | "Directory properties" : | 310 | "Directory properties" : |
311 | "File properties", NOICON); | 311 | "File properties", NOICON); |
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index 656daeaaf8..af415073b3 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c | |||
@@ -278,7 +278,7 @@ void edit_list(void) | |||
278 | list = (struct file_format *)buffer; | 278 | list = (struct file_format *)buffer; |
279 | dirs_count = list->count; | 279 | dirs_count = list->count; |
280 | 280 | ||
281 | rb->gui_synclist_init(&lists,list_get_name_cb,0, false, 1); | 281 | rb->gui_synclist_init(&lists,list_get_name_cb,0, false, 1, NULL); |
282 | rb->gui_synclist_set_icon_callback(&lists,NULL); | 282 | rb->gui_synclist_set_icon_callback(&lists,NULL); |
283 | rb->gui_synclist_set_nb_items(&lists,list->count); | 283 | rb->gui_synclist_set_nb_items(&lists,list->count); |
284 | rb->gui_synclist_limit_scroll(&lists,true); | 284 | rb->gui_synclist_limit_scroll(&lists,true); |
diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c index 4ef1bbc816..503db56d30 100644 --- a/apps/plugins/shortcuts/shortcuts_view.c +++ b/apps/plugins/shortcuts/shortcuts_view.c | |||
@@ -117,7 +117,7 @@ bool list_sc(bool is_editable) | |||
117 | 117 | ||
118 | /* Setup the GUI list object, draw it to the screen, | 118 | /* Setup the GUI list object, draw it to the screen, |
119 | * and then handle the user input to it */ | 119 | * and then handle the user input to it */ |
120 | rb->gui_synclist_init(&gui_sc, &build_sc_list, &sc_file, false, 1); | 120 | rb->gui_synclist_init(&gui_sc, &build_sc_list, &sc_file, false, 1, NULL); |
121 | rb->gui_synclist_set_title(&gui_sc, | 121 | rb->gui_synclist_set_title(&gui_sc, |
122 | (is_editable?"Shortcuts (editable)":"Shortcuts (sealed)"), NOICON); | 122 | (is_editable?"Shortcuts (editable)":"Shortcuts (sealed)"), NOICON); |
123 | rb->gui_synclist_set_nb_items(&gui_sc, sc_file.entry_cnt); | 123 | rb->gui_synclist_set_nb_items(&gui_sc, sc_file.entry_cnt); |
diff --git a/apps/plugins/snake.c b/apps/plugins/snake.c index 51d5f5a9e8..fffb70c2bc 100644 --- a/apps/plugins/snake.c +++ b/apps/plugins/snake.c | |||
@@ -396,7 +396,7 @@ void game_init(void) { | |||
396 | "Quit"); | 396 | "Quit"); |
397 | 397 | ||
398 | while (!menu_quit) { | 398 | while (!menu_quit) { |
399 | switch(rb->do_menu(&menu, &selection)) | 399 | switch(rb->do_menu(&menu, &selection, NULL, false)) |
400 | { | 400 | { |
401 | case 0: | 401 | case 0: |
402 | menu_quit = true; /* start playing */ | 402 | menu_quit = true; /* start playing */ |
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index d4e33f163c..8b1fe508ce 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -1173,7 +1173,7 @@ static int sokoban_menu(void) | |||
1173 | 1173 | ||
1174 | do { | 1174 | do { |
1175 | menu_quit = true; | 1175 | menu_quit = true; |
1176 | selection = rb->do_menu(&menu, &start_selected); | 1176 | selection = rb->do_menu(&menu, &start_selected, NULL, false); |
1177 | 1177 | ||
1178 | switch (selection) { | 1178 | switch (selection) { |
1179 | case 0: /* Resume */ | 1179 | case 0: /* Resume */ |
diff --git a/apps/plugins/star.c b/apps/plugins/star.c index efa8d4e6af..c2546d2385 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c | |||
@@ -951,16 +951,28 @@ static int star_menu(void) | |||
951 | { | 951 | { |
952 | int selection, level=1; | 952 | int selection, level=1; |
953 | bool menu_quit = false; | 953 | bool menu_quit = false; |
954 | 954 | struct viewport vp[NB_SCREENS]; | |
955 | /* get the size of char */ | 955 | /* get the size of char */ |
956 | rb->lcd_getstringsize("a", &char_width, &char_height); | 956 | rb->lcd_getstringsize("a", &char_width, &char_height); |
957 | 957 | ||
958 | MENUITEM_STRINGLIST(menu,"Star Menu",NULL,"Play","Choose Level", | 958 | MENUITEM_STRINGLIST(menu,"Star Menu",NULL,"Play","Choose Level", |
959 | "Information","Keys","Quit"); | 959 | "Information","Keys","Quit"); |
960 | 960 | FOR_NB_SCREENS(selection) | |
961 | { | ||
962 | rb->viewport_set_defaults(&vp[selection], selection); | ||
963 | /* we are hiding the statusbar so fix the height also */ | ||
964 | vp->y = 0; vp->height = rb->screens[selection]->height; | ||
965 | #if LCD_DEPTH > 1 | ||
966 | if (rb->screens[selection]->depth > 1) | ||
967 | { | ||
968 | vp->bg_pattern = LCD_BLACK; | ||
969 | vp->fg_pattern = LCD_WHITE; | ||
970 | } | ||
971 | #endif | ||
972 | } | ||
961 | while(!menu_quit) | 973 | while(!menu_quit) |
962 | { | 974 | { |
963 | switch(rb->do_menu(&menu, &selection)) | 975 | switch(rb->do_menu(&menu, &selection, vp, true)) |
964 | { | 976 | { |
965 | case 0: | 977 | case 0: |
966 | menu_quit = true; | 978 | menu_quit = true; |
diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index e3f35f91ac..c047ed454a 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c | |||
@@ -493,7 +493,7 @@ int settings_menu_function(void) { | |||
493 | "Human starting farms","Human starting factories", | 493 | "Human starting farms","Human starting factories", |
494 | "Starting cash","Starting food","Moves per turn"); | 494 | "Starting cash","Starting food","Moves per turn"); |
495 | settings_menu: | 495 | settings_menu: |
496 | selection=rb->do_menu(&settings_menu,&selection); | 496 | selection=rb->do_menu(&settings_menu,&selection, NULL, false); |
497 | switch(selection) { | 497 | switch(selection) { |
498 | case 0: | 498 | case 0: |
499 | rb->set_int("Computer starting farms", "", UNIT_INT, | 499 | rb->set_int("Computer starting farms", "", UNIT_INT, |
@@ -557,7 +557,7 @@ int do_help(void) { | |||
557 | "Each tile has a strength, calculated by the ownership", | 557 | "Each tile has a strength, calculated by the ownership", |
558 | "of adjacent tiles, and the type and number of troops", | 558 | "of adjacent tiles, and the type and number of troops", |
559 | "on them."); | 559 | "on them."); |
560 | rb->do_menu(&help_menu,&selection); | 560 | rb->do_menu(&help_menu,&selection, NULL, false); |
561 | switch(selection) { | 561 | switch(selection) { |
562 | case MENU_ATTACHED_USB: | 562 | case MENU_ATTACHED_USB: |
563 | return PLUGIN_USB_CONNECTED; | 563 | return PLUGIN_USB_CONNECTED; |
@@ -573,7 +573,7 @@ int menu(void) { | |||
573 | "Play Super Domination","Settings","Help","Quit"); | 573 | "Play Super Domination","Settings","Help","Quit"); |
574 | 574 | ||
575 | while(1) { | 575 | while(1) { |
576 | selection=rb->do_menu(&main_menu,&selection); | 576 | selection=rb->do_menu(&main_menu,&selection, NULL, false); |
577 | switch(selection) { | 577 | switch(selection) { |
578 | case 0: | 578 | case 0: |
579 | return 0; /* start playing */ | 579 | return 0; /* start playing */ |
@@ -651,7 +651,7 @@ int ingame_menu(void) { | |||
651 | MENUITEM_STRINGLIST(ingame_menu,"Super Domination Menu",NULL, | 651 | MENUITEM_STRINGLIST(ingame_menu,"Super Domination Menu",NULL, |
652 | "Return to game","Save Game", "Quit"); | 652 | "Return to game","Save Game", "Quit"); |
653 | 653 | ||
654 | selection=rb->do_menu(&ingame_menu,&selection); | 654 | selection=rb->do_menu(&ingame_menu,&selection, NULL, false); |
655 | switch(selection) { | 655 | switch(selection) { |
656 | case 0: | 656 | case 0: |
657 | return 0; | 657 | return 0; |
@@ -864,7 +864,7 @@ int buy_resources_menu(void) { | |||
864 | "Finish buying", "Game menu"); | 864 | "Finish buying", "Game menu"); |
865 | 865 | ||
866 | resources_menu: | 866 | resources_menu: |
867 | selection=rb->do_menu(&res_menu,&selection); | 867 | selection=rb->do_menu(&res_menu,&selection, NULL, false); |
868 | switch(selection) { | 868 | switch(selection) { |
869 | case 0: | 869 | case 0: |
870 | nummen = 0; | 870 | nummen = 0; |
@@ -1059,7 +1059,7 @@ int move_unit(void) { | |||
1059 | 1059 | ||
1060 | MENUITEM_STRINGLIST(move_unit_menu, "Move unit", NULL, "Move men", | 1060 | MENUITEM_STRINGLIST(move_unit_menu, "Move unit", NULL, "Move men", |
1061 | "Move tank", "Move plane"); | 1061 | "Move tank", "Move plane"); |
1062 | selection=rb->do_menu(&move_unit_menu,&selection); | 1062 | selection=rb->do_menu(&move_unit_menu,&selection, NULL, false); |
1063 | switch(selection) { | 1063 | switch(selection) { |
1064 | case 0: | 1064 | case 0: |
1065 | rb->splash(HZ, "Select where to move troops from"); | 1065 | rb->splash(HZ, "Select where to move troops from"); |
@@ -1173,7 +1173,7 @@ int movement_menu(void) { | |||
1173 | "Check map", "Finish moving", "Game menu"); | 1173 | "Check map", "Finish moving", "Game menu"); |
1174 | 1174 | ||
1175 | while(!menu_quit) { | 1175 | while(!menu_quit) { |
1176 | selection=rb->do_menu(&move_menu,&selection); | 1176 | selection=rb->do_menu(&move_menu,&selection, NULL, false); |
1177 | switch(selection) { | 1177 | switch(selection) { |
1178 | case 0: | 1178 | case 0: |
1179 | if(humanres.moves) { | 1179 | if(humanres.moves) { |
@@ -1281,7 +1281,7 @@ int production_menu(void) { | |||
1281 | "Withdraw money", "Finish turn", "Game menu"); | 1281 | "Withdraw money", "Finish turn", "Game menu"); |
1282 | 1282 | ||
1283 | while(1) { | 1283 | while(1) { |
1284 | selection=rb->do_menu(&prod_menu,&selection); | 1284 | selection=rb->do_menu(&prod_menu,&selection, NULL, false); |
1285 | switch(selection) { | 1285 | switch(selection) { |
1286 | case 0: | 1286 | case 0: |
1287 | tempmenu = buy_resources_menu(); | 1287 | tempmenu = buy_resources_menu(); |
@@ -1523,7 +1523,7 @@ int war_menu(void) { | |||
1523 | 1523 | ||
1524 | humanres.moves = superdom_settings.movesperturn; | 1524 | humanres.moves = superdom_settings.movesperturn; |
1525 | while(humanres.moves) { | 1525 | while(humanres.moves) { |
1526 | selection=rb->do_menu(&wartime_menu,&selection); | 1526 | selection=rb->do_menu(&wartime_menu,&selection, NULL, false); |
1527 | switch(selection) { | 1527 | switch(selection) { |
1528 | case 0: | 1528 | case 0: |
1529 | if(select_square() == PLUGIN_USB_CONNECTED) | 1529 | if(select_square() == PLUGIN_USB_CONNECTED) |
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 28e3d18431..642c1c39ff 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c | |||
@@ -715,7 +715,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
715 | 715 | ||
716 | rb->lcd_clear_display(); | 716 | rb->lcd_clear_display(); |
717 | 717 | ||
718 | result=rb->do_menu(&menu,&selection); | 718 | result=rb->do_menu(&menu,&selection, NULL, false); |
719 | 719 | ||
720 | scandir = 0; | 720 | scandir = 0; |
721 | 721 | ||
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 780516e896..75bbccf820 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -202,7 +202,7 @@ void save_changes(int overwrite) | |||
202 | 202 | ||
203 | void setup_lists(struct gui_synclist *lists, int sel) | 203 | void setup_lists(struct gui_synclist *lists, int sel) |
204 | { | 204 | { |
205 | rb->gui_synclist_init(lists,list_get_name_cb,0, false, 1); | 205 | rb->gui_synclist_init(lists,list_get_name_cb,0, false, 1, NULL); |
206 | rb->gui_synclist_set_icon_callback(lists,NULL); | 206 | rb->gui_synclist_set_icon_callback(lists,NULL); |
207 | rb->gui_synclist_set_nb_items(lists,line_count); | 207 | rb->gui_synclist_set_nb_items(lists,line_count); |
208 | rb->gui_synclist_limit_scroll(lists,true); | 208 | rb->gui_synclist_limit_scroll(lists,true); |
@@ -222,7 +222,7 @@ int do_item_menu(int cur_sel, char* copy_buffer) | |||
222 | "Insert Above", "Insert Below", | 222 | "Insert Above", "Insert Below", |
223 | "Concat To Above", "Save"); | 223 | "Concat To Above", "Save"); |
224 | 224 | ||
225 | switch (rb->do_menu(&menu, NULL)) | 225 | switch (rb->do_menu(&menu, NULL, NULL, false)) |
226 | { | 226 | { |
227 | case 0: /* cut */ | 227 | case 0: /* cut */ |
228 | rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]); | 228 | rb->strcpy(copy_buffer,&buffer[do_action(ACTION_GET,0,cur_sel)]); |
@@ -400,7 +400,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
400 | { | 400 | { |
401 | MENUITEM_STRINGLIST(menu, "Edit What?", NULL, | 401 | MENUITEM_STRINGLIST(menu, "Edit What?", NULL, |
402 | "Extension", "Color",); | 402 | "Extension", "Color",); |
403 | switch (rb->do_menu(&menu, NULL)) | 403 | switch (rb->do_menu(&menu, NULL, NULL, false)) |
404 | { | 404 | { |
405 | case 0: | 405 | case 0: |
406 | edit_text = true; | 406 | edit_text = true; |
@@ -468,7 +468,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
468 | "Show Playback Menu", "Save Changes", | 468 | "Show Playback Menu", "Save Changes", |
469 | "Save As...", "Save and Exit", | 469 | "Save As...", "Save and Exit", |
470 | "Ignore Changes and Exit"); | 470 | "Ignore Changes and Exit"); |
471 | switch (rb->do_menu(&menu, NULL)) | 471 | switch (rb->do_menu(&menu, NULL, NULL, false)) |
472 | { | 472 | { |
473 | case 0: | 473 | case 0: |
474 | break; | 474 | break; |
diff --git a/apps/plugins/vu_meter.c b/apps/plugins/vu_meter.c index 97ad12d419..f71118268e 100644 --- a/apps/plugins/vu_meter.c +++ b/apps/plugins/vu_meter.c | |||
@@ -401,7 +401,7 @@ static bool vu_meter_menu(void) | |||
401 | }; | 401 | }; |
402 | 402 | ||
403 | while (!menu_quit) { | 403 | while (!menu_quit) { |
404 | switch(rb->do_menu(&menu, &selection)) | 404 | switch(rb->do_menu(&menu, &selection, NULL, false)) |
405 | { | 405 | { |
406 | case 0: | 406 | case 0: |
407 | rb->set_option("Meter Type", &vumeter_settings.meter_type, INT, | 407 | rb->set_option("Meter Type", &vumeter_settings.meter_type, INT, |
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index b509212239..f6969ff7b5 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c | |||
@@ -3716,7 +3716,7 @@ static int recording_menu(void) | |||
3716 | 3716 | ||
3717 | while (!done) | 3717 | while (!done) |
3718 | { | 3718 | { |
3719 | switch (rb->do_menu(&menu, &menupos)) | 3719 | switch (rb->do_menu(&menu, &menupos, NULL, false)) |
3720 | { | 3720 | { |
3721 | case 0: /* Set sample rate */ | 3721 | case 0: /* Set sample rate */ |
3722 | rb->set_option("Sample rate", &reccfg.samplerate, INT, freqs, 9, NULL); | 3722 | rb->set_option("Sample rate", &reccfg.samplerate, INT, freqs, 9, NULL); |
diff --git a/apps/plugins/wormlet.c b/apps/plugins/wormlet.c index 68b31a1a7c..8b752bf6f5 100644 --- a/apps/plugins/wormlet.c +++ b/apps/plugins/wormlet.c | |||
@@ -2599,7 +2599,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
2599 | rb->button_clear_queue(); | 2599 | rb->button_clear_queue(); |
2600 | 2600 | ||
2601 | while (!menu_quit) { | 2601 | while (!menu_quit) { |
2602 | switch(rb->do_menu(&menu, &result)) | 2602 | switch(rb->do_menu(&menu, &result, NULL, false)) |
2603 | { | 2603 | { |
2604 | case 0: | 2604 | case 0: |
2605 | rb->lcd_setfont(FONT_SYSFIXED); | 2605 | rb->lcd_setfont(FONT_SYSFIXED); |
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index 743dd41362..879d0e65f7 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c | |||
@@ -851,7 +851,7 @@ static int game_menu (void) | |||
851 | rb->lcd_set_background(LCD_WHITE); | 851 | rb->lcd_set_background(LCD_WHITE); |
852 | #endif | 852 | #endif |
853 | for (;;) { | 853 | for (;;) { |
854 | rb->do_menu(&menu,&selection); | 854 | rb->do_menu(&menu,&selection, NULL, false); |
855 | if (selection==1) | 855 | if (selection==1) |
856 | rb->set_int ("Speed", "", UNIT_INT, &speed, NULL, 1, 1, 10, NULL); | 856 | rb->set_int ("Speed", "", UNIT_INT, &speed, NULL, 1, 1, 10, NULL); |
857 | else if (selection==2) | 857 | else if (selection==2) |