Searched refs:max_choice (Results 1 - 16 of 16) sorted by relevance

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/busybox/scripts/kconfig/lxdialog/
H A Dmenubox.c187 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 Dchecklist.c116 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...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/busybox/scripts/kconfig/lxdialog/
H A Dmenubox.c187 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 Dchecklist.c116 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...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/busybox/scripts/kconfig/lxdialog/
H A Dmenubox.c187 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 Dchecklist.c116 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...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/scripts/kconfig/lxdialog/
H A Dmenubox.c188 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 Dchecklist.c121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local
140 max_choice = MIN(list_height, item_count());
194 for (i = 0; i < max_choice; i++) {
211 for (i = 0; i < max_choice; i++) {
217 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
245 if (choice == max_choice - 1) {
251 item_set(scroll + max_choice - 1);
253 max_choice - 1,
260 item_set(scroll + max_choice - 1);
261 print_item(list, max_choice
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/scripts/kconfig/lxdialog/
H A Dmenubox.c188 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 Dchecklist.c121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local
140 max_choice = MIN(list_height, item_count());
194 for (i = 0; i < max_choice; i++) {
211 for (i = 0; i < max_choice; i++) {
217 if (i < max_choice || key == KEY_UP || key == KEY_DOWN ||
245 if (choice == max_choice - 1) {
251 item_set(scroll + max_choice - 1);
253 max_choice - 1,
260 item_set(scroll + max_choice - 1);
261 print_item(list, max_choice
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/config/
H A Dmenubox.c171 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 Dchecklist.c126 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...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/config/
H A Dmenubox.c171 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 Dchecklist.c126 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...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/config/
H A Dmenubox.c171 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 Dchecklist.c126 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...]

Completed in 215 milliseconds