summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2022-03-17 23:14:50 -0700
committerAndreas Kling <kling@serenityos.org>2022-03-18 11:29:43 +0100
commit913374163cfc42e6119f6cecb1142d7b2b5d3bba (patch)
tree5776872f2850ccc9d0a2983f35b7a038ccdd1d61 /Kernel
parent8601f74d5ffc7f675fe577d3849f6997f30005d6 (diff)
downloadserenity-913374163cfc42e6119f6cecb1142d7b2b5d3bba.zip
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. :^)
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index e6470d48d9..151783bbd3 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -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,