From d19c2ad395cecc8dfa1265a62e23a3b588cd173e Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 26 Jul 2023 13:47:15 +0100 Subject: [PATCH] map missing colours --- display.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/display.cpp b/display.cpp index 81f9a42..e76bb50 100644 --- a/display.cpp +++ b/display.cpp @@ -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