mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel/TTY: Don't flush dirty lines if VirtualConsole is not active
This commit is contained in:
parent
38ccdb02ce
commit
5f718c6b05
Notes:
sideshowbarker
2024-07-18 17:39:13 +09:00
Author: https://github.com/supercomputer7
Commit: 5f718c6b05
Pull-request: https://github.com/SerenityOS/serenity/pull/7258
Issue: https://github.com/SerenityOS/serenity/issues/7241
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/tomuta
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
Add a link
Reference in a new issue