162 |
scrolling = vcons->state.screen.height; |
scrolling = vcons->state.screen.height; |
163 |
if (scrolling < vcons->state.screen.height) |
if (scrolling < vcons->state.screen.height) |
164 |
cons_vcons_scroll (vcons, scrolling); |
cons_vcons_scroll (vcons, scrolling); |
165 |
|
else |
166 |
|
cons_vcons_clear (vcons, vcons->state.screen.width |
167 |
|
* vcons->state.screen.height, |
168 |
|
0, 0); |
169 |
vis_start = vcons->state.screen.width |
vis_start = vcons->state.screen.width |
170 |
* (cur_disp_line % vcons->state.screen.lines); |
* (cur_disp_line % vcons->state.screen.lines); |
171 |
start = (((cur_disp_line % vcons->state.screen.lines) |
start = (((cur_disp_line % vcons->state.screen.lines) |
303 |
|
|
304 |
if (start != -1) |
if (start != -1) |
305 |
{ |
{ |
306 |
|
cons_vcons_clear (vcons, end - start + 1, |
307 |
|
start_rel % vcons->state.screen.width, |
308 |
|
start_rel / vcons->state.screen.width); |
309 |
cons_vcons_write (vcons, vcons->state.screen.matrix + start, |
cons_vcons_write (vcons, vcons->state.screen.matrix + start, |
310 |
end < size |
end < size |
311 |
? end - start + 1 |
? end - start + 1 |
321 |
/ vcons->state.screen.width); |
/ vcons->state.screen.width); |
322 |
if (end2 != -1) |
if (end2 != -1) |
323 |
{ |
{ |
324 |
|
cons_vcons_clear (vcons, end2 - rotate + 1, 0, 0); |
325 |
cons_vcons_write (vcons, |
cons_vcons_write (vcons, |
326 |
vcons->state.screen.matrix + rotate, |
vcons->state.screen.matrix + rotate, |
327 |
end2 < size |
end2 < size |