mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Kernel: Don't clear VirtualConsoles when initializing
Instead of calling clear() for each virtual console we initialize, we only call clear() when activating it from ConsoleManagement.
This commit is contained in:
parent
bab6fb76b7
commit
b569b2df35
2 changed files with 2 additions and 1 deletions
|
@ -61,6 +61,8 @@ UNMAP_AFTER_INIT void ConsoleManagement::initialize()
|
||||||
m_active_console = m_consoles[tty_number];
|
m_active_console = m_consoles[tty_number];
|
||||||
ScopedSpinLock lock(m_lock);
|
ScopedSpinLock lock(m_lock);
|
||||||
m_active_console->set_active(true);
|
m_active_console->set_active(true);
|
||||||
|
if (!m_active_console->is_graphical())
|
||||||
|
m_active_console->clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConsoleManagement::switch_to(unsigned index)
|
void ConsoleManagement::switch_to(unsigned index)
|
||||||
|
|
|
@ -126,7 +126,6 @@ UNMAP_AFTER_INIT void VirtualConsole::initialize()
|
||||||
for (size_t row = 0; row < rows(); row++) {
|
for (size_t row = 0; row < rows(); row++) {
|
||||||
m_lines.append({ true, 0 });
|
m_lines.append({ true, 0 });
|
||||||
}
|
}
|
||||||
clear();
|
|
||||||
VERIFY(m_cells);
|
VERIFY(m_cells);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue