From 88b3410b6a01fac658c74cc7ca8b1b0483b189d4 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 6 Oct 2006 17:10:16 +0000 Subject: 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 --- textscreen/txt_main.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'textscreen/txt_main.c') 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 // -- cgit v1.2.3