mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Kernel: Remove some unused code in Graphics::TextModeConsole
This commit is contained in:
@@ -89,9 +89,7 @@ void TextModeConsole::set_cursor(size_t x, size_t y)
|
||||
{
|
||||
SpinlockLocker main_lock(GraphicsManagement::the().main_vga_lock());
|
||||
SpinlockLocker lock(m_vga_lock);
|
||||
m_cursor_x = x;
|
||||
m_cursor_y = y;
|
||||
u16 value = m_current_vga_start_address + (y * width() + x);
|
||||
u16 value = y * width() + x;
|
||||
IO::out8(0x3d4, 0x0e);
|
||||
IO::out8(0x3d5, MSB(value));
|
||||
IO::out8(0x3d4, 0x0f);
|
||||
@@ -160,18 +158,6 @@ void TextModeConsole::clear_vga_row(u16 row)
|
||||
clear(row * width(), width(), width());
|
||||
}
|
||||
|
||||
void TextModeConsole::set_vga_start_row(u16 row)
|
||||
{
|
||||
SpinlockLocker lock(m_vga_lock);
|
||||
m_vga_start_row = row;
|
||||
m_current_vga_start_address = row * width();
|
||||
m_current_vga_window = m_current_vga_window + row * width() * bytes_per_base_glyph();
|
||||
IO::out8(0x3d4, 0x0c);
|
||||
IO::out8(0x3d5, MSB(m_current_vga_start_address));
|
||||
IO::out8(0x3d4, 0x0d);
|
||||
IO::out8(0x3d5, LSB(m_current_vga_start_address));
|
||||
}
|
||||
|
||||
void TextModeConsole::write(char ch, bool critical)
|
||||
{
|
||||
write(m_x, m_y, ch, critical);
|
||||
|
||||
Reference in New Issue
Block a user