Skip to content

Commit

Permalink
fixed vgacon_scroll_screen() to use double-buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaku committed Nov 13, 2023
1 parent 2c97461 commit 8027e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/vgacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void vgacon_scroll_screen(struct vconsole *vc, int top, int mode)
offset = top * vc->columns;
top = (top + 1) * vc->columns;
if(vc->flags & CONSOLE_HAS_FOCUS) {
memcpy_w(vidmem + offset, vidmem + top, count);
memcpy_w(vidmem + offset, screen + top, count);
memset_w(vidmem + offset + count, BLANK_MEM, vc->columns);
}
memcpy_w(screen + offset, screen + top, count);
Expand Down

0 comments on commit 8027e86

Please sign in to comment.