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 <buserror@gmail.com>
This commit is contained in:
Michel Pollet 2023-10-25 18:57:42 +01:00
parent f7a56ebc01
commit f17080a8f7

View File

@ -37,7 +37,7 @@ enum {
* Colors were lifted from * Colors were lifted from
* https://comp.sys.apple2.narkive.com/lTSrj2ZI/apple-ii-colour-rgb * 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[] = { static const uint32_t lores_colors[] = {
[0x0] = HI_RGB(0x00, 0x00, 0x00), // black [0x0] = HI_RGB(0x00, 0x00, 0x00), // black
[0x1] = HI_RGB(0xe3, 0x1e, 0x60), // magenta [0x1] = HI_RGB(0xe3, 0x1e, 0x60), // magenta
@ -72,10 +72,10 @@ static const uint32_t hires_colors[] = {
C_GREEN, C_GREEN,
C_GREEN, C_GREEN,
C_PURPLE, C_PURPLE,
C_BLUE,
C_ORANGE,
C_ORANGE, C_ORANGE,
C_BLUE, C_BLUE,
C_BLUE,
C_ORANGE,
C_WHITE, C_WHITE,
}; };