mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
Kernel/TTY: Don't flush dirty lines if VirtualConsole is not active
This commit is contained in:
parent
38ccdb02ce
commit
5f718c6b05
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,8 @@ void VirtualConsole::emit_char(char ch)
|
|||
|
||||
void VirtualConsole::flush_dirty_lines()
|
||||
{
|
||||
if (!m_active)
|
||||
return;
|
||||
VERIFY(GraphicsManagement::is_initialized());
|
||||
VERIFY(GraphicsManagement::the().console());
|
||||
for (u16 visual_row = 0; visual_row < rows(); ++visual_row) {
|
||||
|
|
Loading…
Add table
Reference in a new issue