]> git.sur5r.net Git - cc65/commitdiff
Patch by Greg King: Added TGI_COLOR_* definitions to the Atmos C header file.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 7 Jan 2013 19:33:23 +0000 (19:33 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 7 Jan 2013 19:33:23 +0000 (19:33 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5957 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/atmos.h

index 13427bd88824ccbfef9107c0968414e2e3794338..3ad905860eac8f67fa03fc0683051026a1f75602 100644 (file)
@@ -2,12 +2,12 @@
 /*                                                                           */
 /*                                atmos.h                                   */
 /*                                                                           */
-/*                  Oric Atmos system specific definitions                  */
+/*                  Oric Atmos system-specific definitions                  */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
 /* (C) 2002       Debrune Jérome, <jede@oric.org>                            */
-/* (C) 2003-2004  Ullrich von Bassewitz                                      */
+/* (C) 2003-2013  Ullrich von Bassewitz                                      */
 /*                Roemerstrasse 52                                           */
 /*                D-70794 Filderstadt                                        */
 /* EMail:         uz@cc65.org                                                */
 #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 */