mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
TTY: Reset VGA start row when setting graphical TTY
This was causing the screen (on a real machine) to be split in half.
This commit is contained in:
parent
94ed183774
commit
35ba4bf005
Notes:
sideshowbarker
2024-07-19 09:14:22 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/35ba4bf005a Pull-request: https://github.com/SerenityOS/serenity/pull/1241 Reviewed-by: https://github.com/awesomekling
@ -65,6 +65,14 @@ void VirtualConsole::initialize()
|
||||
s_active_console = -1;
|
||||
}
|
||||
|
||||
void VirtualConsole::set_graphical(bool graphical)
|
||||
{
|
||||
if (graphical)
|
||||
set_vga_start_row(0);
|
||||
|
||||
m_graphical = graphical;
|
||||
}
|
||||
|
||||
VirtualConsole::VirtualConsole(unsigned index, InitialContents initial_contents)
|
||||
: TTY(4, index)
|
||||
, m_index(index)
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
static void initialize();
|
||||
|
||||
bool is_graphical() { return m_graphical; }
|
||||
void set_graphical(bool graphical) { m_graphical = graphical; }
|
||||
void set_graphical(bool graphical);
|
||||
|
||||
private:
|
||||
// ^KeyboardClient
|
||||
|
Loading…
Reference in New Issue
Block a user