From 0a5bf82797d3696a884f25546fcf77fca1325b54 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 7 Jan 2013 19:33:23 +0000 Subject: [PATCH] Patch by Greg King: Added TGI_COLOR_* definitions to the Atmos C header file. git-svn-id: svn://svn.cc65.org/cc65/trunk@5957 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/atmos.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/atmos.h b/include/atmos.h index 13427bd88..3ad905860 100644 --- a/include/atmos.h +++ b/include/atmos.h @@ -2,12 +2,12 @@ /* */ /* atmos.h */ /* */ -/* Oric Atmos system specific definitions */ +/* Oric Atmos system-specific definitions */ /* */ /* */ /* */ /* (C) 2002 Debrune Jérome, */ -/* (C) 2003-2004 Ullrich von Bassewitz */ +/* (C) 2003-2013 Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -56,6 +56,19 @@ #define COLOR_CYAN 0x06 #define COLOR_WHITE 0x07 +/* TGI color defines */ +/* White and red are swapped, so that the pallete +** driver is compatible with black-and-white drivers. +*/ +#define TGI_COLOR_BLACK COLOR_BLACK +#define TGI_COLOR_WHITE 1 +#define TGI_COLOR_GREEN COLOR_GREEN +#define TGI_COLOR_YELLOW COLOR_YELLOW +#define TGI_COLOR_BLUE COLOR_BLUE +#define TGI_COLOR_MAGENTA COLOR_MAGENTA +#define TGI_COLOR_CYAN COLOR_CYAN +#define TGI_COLOR_RED 7 + /* Define hardware */ -- 2.39.2