map missing colours

This commit is contained in:
steve 2023-07-26 13:47:15 +01:00
parent 9fac3649dc
commit d19c2ad395
1 changed files with 3 additions and 1 deletions

View File

@ -30,13 +30,15 @@ static fabgl::Canvas canvas(&vga);
static const fabgl::RGB888 rgb(colour_t c) {
switch(c) {
case BLACK: return Color::Black;
case WHITE: return Color::White;
case RED: return Color::Red;
case GREEN: return Color::Green;
case YELLOW: return Color::Yellow;
case BLUE: return Color::Blue;
case MAGENTA: return Color::Magenta;
case CYAN: return Color::Cyan;
case WHITE: return Color::White;
}
return Color::BrightWhite;
}
#else