diff options
author | Liav A <liavalb@gmail.com> | 2022-03-19 14:31:56 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-19 13:39:59 +0000 |
commit | f5acef0b81690232efb4ea8c7a7701c2aadf2e79 (patch) | |
tree | 376649c60e0b7c2357b69137f47c535ea2a00a00 /Kernel/Graphics/Console | |
parent | 4644a53d0d8be4155cb0ff9c4ba68eba204349b3 (diff) | |
download | serenity-f5acef0b81690232efb4ea8c7a7701c2aadf2e79.zip |
Kernel: Use original Console m_x and m_y in Text based implementations
Diffstat (limited to 'Kernel/Graphics/Console')
-rw-r--r-- | Kernel/Graphics/Console/TextModeConsole.cpp | 6 | ||||
-rw-r--r-- | Kernel/Graphics/Console/TextModeConsole.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Kernel/Graphics/Console/TextModeConsole.cpp b/Kernel/Graphics/Console/TextModeConsole.cpp index d7ad8b2e1b..811fc477ab 100644 --- a/Kernel/Graphics/Console/TextModeConsole.cpp +++ b/Kernel/Graphics/Console/TextModeConsole.cpp @@ -89,8 +89,8 @@ void TextModeConsole::set_cursor(size_t x, size_t y) { SpinlockLocker lock(m_vga_lock); GraphicsManagement::the().set_vga_text_mode_cursor(width(), x, y); - m_cursor_x = x; - m_cursor_y = y; + m_x = x; + m_y = y; } void TextModeConsole::hide_cursor() { @@ -99,7 +99,7 @@ void TextModeConsole::hide_cursor() } void TextModeConsole::show_cursor() { - set_cursor(m_cursor_x, m_cursor_y); + set_cursor(m_x, m_y); } void TextModeConsole::clear(size_t x, size_t y, size_t length) diff --git a/Kernel/Graphics/Console/TextModeConsole.h b/Kernel/Graphics/Console/TextModeConsole.h index d9fa839176..1b4947653e 100644 --- a/Kernel/Graphics/Console/TextModeConsole.h +++ b/Kernel/Graphics/Console/TextModeConsole.h @@ -39,8 +39,6 @@ private: TextModeConsole(); mutable Spinlock m_vga_lock; - size_t m_cursor_x { 0 }; - size_t m_cursor_y { 0 }; VirtualAddress m_current_vga_window; }; |