Home
last modified time | relevance | path

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

/busybox-1.35.0/scripts/kconfig/lxdialog/
Dmenubox.c187 int first_item = 0, max_choice; in dialog_menu() local
191 max_choice = MIN(menu_height, item_no); in dialog_menu()
239 (scroll + max_choice > choice) && (scroll >= 0) && in dialog_menu()
240 (scroll + max_choice <= item_no)) { in dialog_menu()
251 if ((choice >= max_choice) || (f == NULL && choice >= max_choice / 2)) { in dialog_menu()
252 if (choice >= item_no - max_choice / 2) in dialog_menu()
253 scroll = first_item = item_no - max_choice; in dialog_menu()
255 scroll = first_item = choice - max_choice / 2; in dialog_menu()
260 for (i = 0; i < max_choice; i++) { in dialog_menu()
280 i = max_choice; in dialog_menu()
[all …]
Dchecklist.c116 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status; in dialog_checklist() local
137 max_choice = MIN(list_height, item_no); in dialog_checklist()
189 for (i = 0; i < max_choice; i++) { in dialog_checklist()
206 for (i = 0; i < max_choice; i++) in dialog_checklist()
211 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || in dialog_checklist()
238 if (choice == max_choice - 1) { in dialog_checklist()
244 print_item(list, items[(scroll + max_choice - 1) * 3 + 1], in dialog_checklist()
245 status[scroll + max_choice - 1], in dialog_checklist()
246 max_choice - 1, FALSE); in dialog_checklist()
252 print_item(list, items[(scroll + max_choice - 1) * 3 + 1], in dialog_checklist()
[all …]