mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:48:13 +00:00
Kernel: Use original Console m_x and m_y in Text based implementations
This commit is contained in:
parent
4644a53d0d
commit
f5acef0b81
2 changed files with 3 additions and 5 deletions
|
@ -89,8 +89,8 @@ void TextModeConsole::set_cursor(size_t x, size_t y)
|
||||||
{
|
{
|
||||||
SpinlockLocker lock(m_vga_lock);
|
SpinlockLocker lock(m_vga_lock);
|
||||||
GraphicsManagement::the().set_vga_text_mode_cursor(width(), x, y);
|
GraphicsManagement::the().set_vga_text_mode_cursor(width(), x, y);
|
||||||
m_cursor_x = x;
|
m_x = x;
|
||||||
m_cursor_y = y;
|
m_y = y;
|
||||||
}
|
}
|
||||||
void TextModeConsole::hide_cursor()
|
void TextModeConsole::hide_cursor()
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ void TextModeConsole::hide_cursor()
|
||||||
}
|
}
|
||||||
void TextModeConsole::show_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)
|
void TextModeConsole::clear(size_t x, size_t y, size_t length)
|
||||||
|
|
|
@ -39,8 +39,6 @@ private:
|
||||||
TextModeConsole();
|
TextModeConsole();
|
||||||
|
|
||||||
mutable Spinlock m_vga_lock;
|
mutable Spinlock m_vga_lock;
|
||||||
size_t m_cursor_x { 0 };
|
|
||||||
size_t m_cursor_y { 0 };
|
|
||||||
|
|
||||||
VirtualAddress m_current_vga_window;
|
VirtualAddress m_current_vga_window;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue