HomeSort by relevance Sort by last modified time
    Searched refs:max_choice (Results 1 - 2 of 2) sorted by null

  /external/toybox/kconfig/lxdialog/
menubox.c 188 int first_item = 0, max_choice; local
201 max_choice = MIN(menu_height, item_count());
251 if ((scroll <= choice) && (scroll + max_choice > choice) &&
252 (scroll >= 0) && (scroll + max_choice <= item_count())) {
258 if ((choice >= max_choice)) {
259 if (choice >= item_count() - max_choice / 2)
260 scroll = first_item = item_count() - max_choice;
262 scroll = first_item = choice - max_choice / 2;
267 for (i = 0; i < max_choice; i++) {
287 i = max_choice;
    [all...]
checklist.c 115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local
134 max_choice = MIN(list_height, item_count());
187 for (i = 0; i < max_choice; i++) {
204 for (i = 0; i < max_choice; i++) {
210 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
238 if (choice == max_choice - 1) {
244 item_set(scroll + max_choice - 1);
246 max_choice - 1,
253 item_set(scroll + max_choice - 1);
254 print_item(list, max_choice - 1, TRUE)
    [all...]

Completed in 35 milliseconds