Lines Matching defs: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),
201 int scrollamt = 0;
337 if (choice >= (max_choice + scrollamt)) {
338 scrollamt = choice - max_choice + 1;
352 print_list(&all, choice, scrollamt, max_choice);
373 print_list(&all, choice, scrollamt, max_choice);
389 int current = scrollamt + choice;
409 print_list(&all, choice, scrollamt, max_choice);
421 for (j = scrollamt + choice + 1; j < item_no; j++) {
424 i = j - scrollamt;
429 for (j = 0; j <= scrollamt + choice; j++) {
432 i = j - scrollamt;
463 i = -scrollamt;
466 i = item_no - 1 - scrollamt;
471 else if (scrollamt != 0)
472 i = -MIN(scrollamt, max_choice);
477 i = MIN(choice + max_choice, item_no - scrollamt - 1);
481 if (choice == 0 && scrollamt == 0)
486 if (scrollamt + choice >= item_no - 1)
500 scrollamt += i;
504 scrollamt += (i - max_choice + 1);
506 print_list(&all, choice, scrollamt, max_choice);
509 print_list(&all, choice, scrollamt, max_choice);
559 *current_item = (scrollamt + choice);