Update cbm264.h - fix misunderstanding about TGI colors

This commit is contained in:
Bob Andrews
2025-06-17 20:29:01 +02:00
committed by GitHub
parent c3defc1b1c
commit bae58ae419

View File

@@ -110,25 +110,23 @@
#define COLOR_LIGHTBLUE (BCOLOR_LIGHTBLUE | CATTR_LUMA7) #define COLOR_LIGHTBLUE (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
#define COLOR_GRAY3 (BCOLOR_WHITE | CATTR_LUMA5) #define COLOR_GRAY3 (BCOLOR_WHITE | CATTR_LUMA5)
/* TGI color defines (these are indices into the default palette) */ /* TGI color defines */
#define TGI_COLOR_BLACK 0 #define TGI_COLOR_BLACK (BCOLOR_BLACK)
#define TGI_COLOR_WHITE 1 #define TGI_COLOR_WHITE (BCOLOR_WHITE | CATTR_LUMA7)
/* #define TGI_COLOR_RED (BCOLOR_RED | CATTR_LUMA4)
#define TGI_COLOR_RED 2 #define TGI_COLOR_CYAN (BCOLOR_CYAN | CATTR_LUMA7)
#define TGI_COLOR_CYAN 3 #define TGI_COLOR_PURPLE (BCOLOR_LIGHTVIOLET | CATTR_LUMA7)
#define TGI_COLOR_PURPLE 4 #define TGI_COLOR_GREEN (BCOLOR_GREEN | CATTR_LUMA7)
#define TGI_COLOR_GREEN 5 #define TGI_COLOR_BLUE (BCOLOR_BLUE | CATTR_LUMA7)
#define TGI_COLOR_BLUE 6 #define TGI_COLOR_YELLOW (BCOLOR_YELLOW | CATTR_LUMA7)
#define TGI_COLOR_YELLOW 7 #define TGI_COLOR_ORANGE (BCOLOR_ORANGE | CATTR_LUMA7)
#define TGI_COLOR_ORANGE 8 #define TGI_COLOR_BROWN (BCOLOR_BROWN | CATTR_LUMA7)
#define TGI_COLOR_BROWN 9 #define TGI_COLOR_LIGHTRED (BCOLOR_RED | CATTR_LUMA7)
#define TGI_COLOR_LIGHTRED 10 #define TGI_COLOR_GRAY1 (BCOLOR_WHITE | CATTR_LUMA1)
#define TGI_COLOR_GRAY1 11 #define TGI_COLOR_GRAY2 (BCOLOR_WHITE | CATTR_LUMA3)
#define TGI_COLOR_GRAY2 12 #define TGI_COLOR_LIGHTGREEN (BCOLOR_LIGHTGREEN | CATTR_LUMA7)
#define TGI_COLOR_LIGHTGREEN 13 #define TGI_COLOR_LIGHTBLUE (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
#define TGI_COLOR_LIGHTBLUE 14 #define TGI_COLOR_GRAY3 (BCOLOR_WHITE | CATTR_LUMA5)
#define TGI_COLOR_GRAY3 15
*/
/* Masks for joy_read */ /* Masks for joy_read */
#define JOY_UP_MASK 0x01 #define JOY_UP_MASK 0x01