mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibVT: Make VT::Line use a Vector for storage
This is preparation for non-destructive terminal resizing which will require more dynamic storage for lines.
This commit is contained in:
@@ -293,7 +293,7 @@ void VirtualConsole::flush_dirty_lines()
|
||||
continue;
|
||||
for (size_t column = 0; column < line.length(); ++column) {
|
||||
u32 code_point = line.code_point(column);
|
||||
auto attribute = line.attributes()[column];
|
||||
auto attribute = line.attribute_at(column);
|
||||
u16 vga_index = (visual_row * 160) + (column * 2);
|
||||
m_current_vga_window[vga_index] = code_point < 128 ? code_point : '?';
|
||||
m_current_vga_window[vga_index + 1] = attribute_to_vga(attribute);
|
||||
|
||||
Reference in New Issue
Block a user