Kernel: If wrapping a line at screen bottom, scroll properly
This commit is contained in:
parent
6892fd96d0
commit
e1f58c0163
@ -79,7 +79,7 @@ void TextRenderer::putchar(char chr)
|
|||||||
{
|
{
|
||||||
xpos = 0;
|
xpos = 0;
|
||||||
ypos += FONT_HEIGHT;
|
ypos += FONT_HEIGHT;
|
||||||
if (ypos > bootboot.fb_height)
|
if ((ypos + FONT_HEIGHT) >= bootboot.fb_height)
|
||||||
{
|
{
|
||||||
memcpy((void*)bootboot.fb_ptr, (char*)bootboot.fb_ptr + (bootboot.fb_scanline * FONT_HEIGHT),
|
memcpy((void*)bootboot.fb_ptr, (char*)bootboot.fb_ptr + (bootboot.fb_scanline * FONT_HEIGHT),
|
||||||
bootboot.fb_size - (bootboot.fb_scanline * FONT_HEIGHT));
|
bootboot.fb_size - (bootboot.fb_scanline * FONT_HEIGHT));
|
||||||
|
Loading…
Reference in New Issue
Block a user