From f17080a8f7ef3542e84d6325b1bead8abe57cf9b Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Wed, 25 Oct 2023 18:57:42 +0100 Subject: [PATCH] Fix for RGB vs BGR color switch THis was affecting the double hires and also the hires (by double negation!) Signed-off-by: Michel Pollet --- src/mii_video.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mii_video.c b/src/mii_video.c index 8494551..6c633b0 100644 --- a/src/mii_video.c +++ b/src/mii_video.c @@ -37,7 +37,7 @@ enum { * Colors were lifted from * https://comp.sys.apple2.narkive.com/lTSrj2ZI/apple-ii-colour-rgb */ -#define HI_RGB(r,g,b) (0xff000000 | ((b) << 16) | ((g) << 8) | (r)) +#define HI_RGB(r,g,b) (0xff000000 | ((r) << 16) | ((g) << 8) | (b)) static const uint32_t lores_colors[] = { [0x0] = HI_RGB(0x00, 0x00, 0x00), // black [0x1] = HI_RGB(0xe3, 0x1e, 0x60), // magenta @@ -72,10 +72,10 @@ static const uint32_t hires_colors[] = { C_GREEN, C_GREEN, C_PURPLE, - C_BLUE, - C_ORANGE, C_ORANGE, C_BLUE, + C_BLUE, + C_ORANGE, C_WHITE, };