Lines Matching refs:scrollamt
103 int scrollamt,
113 &data->items[scrollamt + i],
115 data->depths[scrollamt + i],
121 (long) (scrollamt),
122 (long) (scrollamt),
123 (long) (scrollamt + max_choice),
202 int scrollamt = 0;
340 if (choice >= (max_choice + scrollamt)) {
341 scrollamt = choice - max_choice + 1;
355 print_list(&all, choice, scrollamt, max_choice);
376 print_list(&all, choice, scrollamt, max_choice);
392 int current = scrollamt + choice;
412 print_list(&all, choice, scrollamt, max_choice);
424 for (j = scrollamt + choice + 1; j < item_no; j++) {
427 i = j - scrollamt;
432 for (j = 0; j <= scrollamt + choice; j++) {
435 i = j - scrollamt;
466 i = -scrollamt;
469 i = item_no - 1 - scrollamt;
474 else if (scrollamt != 0)
475 i = -MIN(scrollamt, max_choice);
480 i = MIN(choice + max_choice, item_no - scrollamt - 1);
484 if (choice == 0 && scrollamt == 0)
489 if (scrollamt + choice >= item_no - 1)
503 scrollamt += i;
507 scrollamt += (i - max_choice + 1);
509 print_list(&all, choice, scrollamt, max_choice);
512 print_list(&all, choice, scrollamt, max_choice);
563 *current_item = (scrollamt + choice);