Searched refs:max_choice (Results 1 - 6 of 6) sorted by relevance
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/busybox-1.x/scripts/kconfig/lxdialog/ |
H A D | menubox.c | 187 int first_item = 0, max_choice; local 191 max_choice = MIN(menu_height, item_no); 239 (scroll + max_choice > choice) && (scroll >= 0) && 240 (scroll + max_choice <= item_no)) { 251 if ((choice >= max_choice) || (f == NULL && choice >= max_choice / 2)) { 252 if (choice >= item_no - max_choice / 2) 253 scroll = first_item = item_no - max_choice; 255 scroll = first_item = choice - max_choice / 2; 260 for (i = 0; i < max_choice; [all...] |
H A D | checklist.c | 116 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status; local 137 max_choice = MIN(list_height, item_no); 189 for (i = 0; i < max_choice; i++) { 206 for (i = 0; i < max_choice; i++) 211 if (i < max_choice || key == KEY_UP || key == KEY_DOWN || 238 if (choice == max_choice - 1) { 244 print_item(list, items[(scroll + max_choice - 1) * 3 + 1], 245 status[scroll + max_choice - 1], 246 max_choice - 1, FALSE); 252 print_item(list, items[(scroll + max_choice [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/router/config/ |
H A D | menubox.c | 171 int key = 0, button = 0, scroll = 0, choice = 0, first_item = 0, max_choice; local 175 max_choice = MIN (menu_height, item_no); 241 (scroll+max_choice > choice) && (scroll >= 0) && 242 (scroll+max_choice <= item_no) ) { 253 if ( (choice >= max_choice) || (f==NULL && choice >= max_choice/2) ) { 254 if (choice >= item_no-max_choice/2) 255 scroll = first_item = item_no-max_choice; 257 scroll = first_item = choice - max_choice/2; 262 for (i=0; i < max_choice; [all...] |
H A D | checklist.c | 126 int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status; local 146 max_choice = MIN (list_height, item_no); 210 for (i = 0; i < max_choice; i++) { 227 for (i = 0; i < max_choice; i++) 232 if ( i < max_choice || key == KEY_UP || key == KEY_DOWN || 261 if (choice == max_choice - 1) { 267 print_item (list, items[scroll + max_choice - 1]->name, 268 status[scroll + max_choice - 1], 269 max_choice - 1, FALSE); 275 print_item (list, items[scroll + max_choice [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/scripts/kconfig/lxdialog/ |
H A D | 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...] |
H A D | 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 [all...] |
Completed in 88 milliseconds