summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-05-20 22:08:48 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-21 08:08:33 +0200
commit5f718c6b05a638d200b9f546cc7f67cc77cf4b66 (patch)
treed9fc699e27bb60be3c35526aeb7757279018fe68 /Kernel
parent38ccdb02ce0f4928643cd63395e6f5af628d74ec (diff)
downloadserenity-5f718c6b05a638d200b9f546cc7f67cc77cf4b66.zip
Kernel/TTY: Don't flush dirty lines if VirtualConsole is not active
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 350f075b2c..e664544b4c 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -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) {