shithub: choc

Download patch

ref: 88b3410b6a01fac658c74cc7ca8b1b0483b189d4
parent: 380080a32ed57ecec1ddb48bccfd80446ac6a53f
author: Simon Howard <fraggle@gmail.com>
date: Fri Oct 6 13:10:16 EDT 2006

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

--- 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
@@ -64,6 +68,34 @@
     {0xfe, 0xfe, 0x54, 0x00},          // 14: Yellow
     {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