mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
Kernel: Add missing BrightWhite color to VirtualConsole
Because of the 'default' label, the compiler did not warn about the missing field. The `VERIFY_NOT_REACHED` was moved out of the switch to fix this.
This commit is contained in:
parent
79a47d9bd3
commit
54a33c45bb
Notes:
sideshowbarker
2024-07-18 12:26:15 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/54a33c45bb9 Pull-request: https://github.com/SerenityOS/serenity/pull/7975
@ -208,7 +208,7 @@ static inline Graphics::Console::Color ansi_color_to_standard_vga_color(VT::Colo
|
||||
case VT::Color::ANSIColor::Red:
|
||||
return Graphics::Console::Color::Red;
|
||||
case VT::Color::ANSIColor::Green:
|
||||
return Graphics::Console::Green;
|
||||
return Graphics::Console::Color::Green;
|
||||
case VT::Color::ANSIColor::Yellow:
|
||||
// VGA only has bright yellow, and treats normal yellow as a brownish orange color.
|
||||
return Graphics::Console::Color::Brown;
|
||||
@ -220,9 +220,9 @@ static inline Graphics::Console::Color ansi_color_to_standard_vga_color(VT::Colo
|
||||
return Graphics::Console::Color::Cyan;
|
||||
case VT::Color::ANSIColor::DefaultForeground:
|
||||
case VT::Color::ANSIColor::White:
|
||||
return Graphics::Console::Color::White;
|
||||
case VT::Color::ANSIColor::BrightBlack:
|
||||
return Graphics::Console::Color::LightGray;
|
||||
case VT::Color::ANSIColor::BrightBlack:
|
||||
return Graphics::Console::Color::DarkGray;
|
||||
case VT::Color::ANSIColor::BrightRed:
|
||||
return Graphics::Console::Color::BrightRed;
|
||||
case VT::Color::ANSIColor::BrightGreen:
|
||||
@ -235,9 +235,10 @@ static inline Graphics::Console::Color ansi_color_to_standard_vga_color(VT::Colo
|
||||
return Graphics::Console::Color::BrightMagenta;
|
||||
case VT::Color::ANSIColor::BrightCyan:
|
||||
return Graphics::Console::Color::BrightCyan;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
case VT::Color::ANSIColor::BrightWhite:
|
||||
return Graphics::Console::Color::White;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
static inline Graphics::Console::Color terminal_to_standard_color(VT::Color color)
|
||||
|
Loading…
Reference in New Issue
Block a user