1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:25:06 +00:00

Kernel: Use original Console m_x and m_y in Text based implementations

This commit is contained in:
Liav A 2022-03-19 14:31:56 +02:00 committed by Linus Groh
parent 4644a53d0d
commit f5acef0b81
2 changed files with 3 additions and 5 deletions

View file

@ -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)