Home
last modified time | relevance | path

Searched refs:max_choice (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/scripts/kconfig/lxdialog/
Dmenubox.c177 int first_item = 0, max_choice; in dialog_menu() local
190 max_choice = MIN(menu_height, item_count()); in dialog_menu()
240 if ((scroll <= choice) && (scroll + max_choice > choice) && in dialog_menu()
241 (scroll >= 0) && (scroll + max_choice <= item_count())) { in dialog_menu()
247 if ((choice >= max_choice)) { in dialog_menu()
248 if (choice >= item_count() - max_choice / 2) in dialog_menu()
249 scroll = first_item = item_count() - max_choice; in dialog_menu()
251 scroll = first_item = choice - max_choice / 2; in dialog_menu()
256 for (i = 0; i < max_choice; i++) { in dialog_menu()
276 i = max_choice; in dialog_menu()
[all …]
Dchecklist.c108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
127 max_choice = MIN(list_height, item_count()); in dialog_checklist()
181 for (i = 0; i < max_choice; i++) { in dialog_checklist()
198 for (i = 0; i < max_choice; i++) { in dialog_checklist()
204 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist()
232 if (choice == max_choice - 1) { in dialog_checklist()
238 item_set(scroll + max_choice - 1); in dialog_checklist()
240 max_choice - 1, in dialog_checklist()
247 item_set(scroll + max_choice - 1); in dialog_checklist()
248 print_item(list, max_choice - 1, TRUE); in dialog_checklist()