Lines Matching refs:scrollamt

101 print_list(ALL_DATA * data, int choice, int scrollamt, int max_choice)  in print_list()  argument
110 &data->items[i + scrollamt], in print_list()
117 (long) (scrollamt), in print_list()
118 (long) (scrollamt), in print_list()
119 (long) (scrollamt + max_choice), in print_list()
198 int scrollamt = 0; in dlg_checklist() local
365 scrollamt = MIN(scrollamt, max_choice + item_no - 1); in dlg_checklist()
366 if (choice >= (max_choice + scrollamt - 1)) { in dlg_checklist()
367 scrollamt = MAX(0, choice - max_choice + 1); in dlg_checklist()
370 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
402 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
420 int current = scrollamt + choice; in dlg_checklist()
430 &items[scrollamt + choice], in dlg_checklist()
452 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
466 for (j = scrollamt + choice + 1; j < item_no; j++) { in dlg_checklist()
469 i = j - scrollamt; in dlg_checklist()
474 for (j = 0; j <= scrollamt + choice; j++) { in dlg_checklist()
477 i = j - scrollamt; in dlg_checklist()
508 i = -scrollamt; in dlg_checklist()
511 i = item_no - 1 - scrollamt; in dlg_checklist()
516 else if (scrollamt != 0) in dlg_checklist()
517 i = -MIN(scrollamt, max_choice); in dlg_checklist()
522 i = MIN(choice + max_choice, item_no - scrollamt - 1); in dlg_checklist()
526 if (choice == 0 && scrollamt == 0) in dlg_checklist()
531 if (scrollamt + choice >= item_no - 1) in dlg_checklist()
546 scrollamt += i; in dlg_checklist()
550 scrollamt += (i - max_choice + 1); in dlg_checklist()
552 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
555 print_list(&all, choice, scrollamt, max_choice); in dlg_checklist()
607 *current_item = (scrollamt + choice); in dlg_checklist()