summaryrefslogtreecommitdiff
path: root/textscreen/txt_main.c
diff options
context:
space:
mode:
authorSimon Howard2006-10-06 17:10:16 +0000
committerSimon Howard2006-10-06 17:10:16 +0000
commit88b3410b6a01fac658c74cc7ca8b1b0483b189d4 (patch)
tree1df58b87f433d5eff80c319e9406532d87a61a00 /textscreen/txt_main.c
parent380080a32ed57ecec1ddb48bccfd80446ac6a53f (diff)
downloadchocolate-doom-88b3410b6a01fac658c74cc7ca8b1b0483b189d4.tar.gz
chocolate-doom-88b3410b6a01fac658c74cc7ca8b1b0483b189d4.tar.bz2
chocolate-doom-88b3410b6a01fac658c74cc7ca8b1b0483b189d4.zip
Alternate textscreen palette that fits the Tango desktop guidelines: see
http://uwstopia.nl/blog/2006/07/tango-terminal Subversion-branch: /trunk/chocolate-doom Subversion-revision: 690
Diffstat (limited to 'textscreen/txt_main.c')
-rw-r--r--textscreen/txt_main.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/textscreen/txt_main.c b/textscreen/txt_main.c
index 45971a23..deae384d 100644
--- a/textscreen/txt_main.c
+++ b/textscreen/txt_main.c
@@ -45,6 +45,10 @@
static SDL_Surface *screen;
static unsigned char *screendata;
+//#define TANGO
+
+#ifndef TANGO
+
static SDL_Color ega_colors[] =
{
{0x00, 0x00, 0x00, 0x00}, // 0: Black
@@ -65,6 +69,34 @@ static SDL_Color ega_colors[] =
{0xfe, 0xfe, 0xfe, 0x00}, // 15: Bright white
};
+#else
+
+// Colors that fit the Tango desktop guidelines: see
+// http://tango.freedesktop.org/ also
+// http://uwstopia.nl/blog/2006/07/tango-terminal
+
+static SDL_Color ega_colors[] =
+{
+ {0x2e, 0x34, 0x36, 0x00}, // 0: Black
+ {0x34, 0x65, 0xa4, 0x00}, // 1: Blue
+ {0x4e, 0x9a, 0x06, 0x00}, // 2: Green
+ {0x06, 0x98, 0x9a, 0x00}, // 3: Cyan
+ {0xcc, 0x00, 0x00, 0x00}, // 4: Red
+ {0x75, 0x50, 0x7b, 0x00}, // 5: Magenta
+ {0xc4, 0xa0, 0x00, 0x00}, // 6: Brown
+ {0xd3, 0xd7, 0xcf, 0x00}, // 7: Grey
+ {0x55, 0x57, 0x53, 0x00}, // 8: Dark grey
+ {0x72, 0x9f, 0xcf, 0x00}, // 9: Bright blue
+ {0x8a, 0xe2, 0x34, 0x00}, // 10: Bright green
+ {0x34, 0xe2, 0xe2, 0x00}, // 11: Bright cyan
+ {0xef, 0x29, 0x29, 0x00}, // 12: Bright red
+ {0x34, 0xe2, 0xe2, 0x00}, // 13: Bright magenta
+ {0xfc, 0xe9, 0x4f, 0x00}, // 14: Yellow
+ {0xee, 0xee, 0xec, 0x00}, // 15: Bright white
+};
+
+#endif
+
//
// Initialise text mode screen
//