Fix the optimization when scrolling the console

This commit is contained in:
Pierre Pronchery 2018-05-27 19:48:07 +02:00
parent 01befa0359
commit fda77da39a

View File

@ -196,7 +196,7 @@ static void _vga_scroll(VGAConsole * console, size_t rows)
if(rows == 0)
return;
if(rows >= VGA_TEXT_COLUMNS)
if(rows >= VGA_TEXT_ROWS)
{
console_clear(console);
return;