Lines Matching refs:y0
73 static void erase_region(textcon_t* tc, int x0, int y0, int x1, int y1) {
78 vc_char_t* ptr = dataxy(tc, x0, y0);
81 invalidate(tc, x0, y0, x1 - x0 + 1, y1 - y0 + 1);
148 // Scroll the region between line |y0| (inclusive) and |y1| (exclusive).
151 static void scroll_lines(textcon_t* tc, int y0, int y1, int diff) {
153 if (delta > y1 - y0)
154 delta = y1 - y0;
155 int copy_count = y1 - y0 - delta;
159 push_scrollback_line(tc, y0 + i);
161 tc->copy_lines(tc->cookie, y0, y0 + delta, copy_count);
162 clear_lines(tc, y0 + copy_count, delta);
165 tc->copy_lines(tc->cookie, y0 + delta, y0, copy_count);
166 clear_lines(tc, y0, delta);
184 void set_scroll(textcon_t* tc, int y0, int y1) {
185 if (y0 > y1) {
188 tc->scroll_y0 = (y0 < 0) ? 0 : y0;