mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibVT/Kernel: Make VT::Attribute::Flags enum class, use AK EnumBits
Noticed the TODO in `Attribute.h` and realized we have as solution to this problem already. :^)
This commit is contained in:
committed by
Andreas Kling
parent
8601f74d5f
commit
913374163c
@@ -306,7 +306,7 @@ void VirtualConsole::flush_dirty_lines()
|
||||
auto& cell = cell_at(column, visual_row);
|
||||
|
||||
auto foreground_color = terminal_to_standard_color(cell.attribute.effective_foreground_color());
|
||||
if (cell.attribute.flags & VT::Attribute::Flags::Bold)
|
||||
if (has_flag(cell.attribute.flags, VT::Attribute::Flags::Bold))
|
||||
foreground_color = (Graphics::Console::Color)((u8)foreground_color | 0x08);
|
||||
GraphicsManagement::the().console()->write(column,
|
||||
visual_row,
|
||||
|
||||
Reference in New Issue
Block a user