Lines Matching refs:scroll
461 static int scroll = 0; in redraw() local
469 if ((current_cntr - scroll) > (max - 1)) { in redraw()
470 scroll = current_cntr - (max - 1); in redraw()
471 } else if ((current_cntr - 1) < scroll) { in redraw()
472 scroll = current_cntr - 1; in redraw()
484 if ((scroll <= row) && ((row - scroll) < max)) in redraw()
485 redraw_group_header(win, row - scroll, group->group->name); in redraw()
490 if ((scroll <= row) && ((row - scroll) < max)) in redraw()
491 redraw_counter(win, row - scroll, group, j, row == current_cntr); in redraw()
554 int cnt = 0, current = 0, scroll; in counter_dialog() local
574 scroll = 0; in counter_dialog()
585 if ((current - scroll) >= (dh - 3)) { in counter_dialog()
586 scroll = current - (dh - 3); in counter_dialog()
587 } else if (current < scroll) { in counter_dialog()
588 scroll = current; in counter_dialog()
592 int n = scroll + i; in counter_dialog()