shithub: choc

Download patch

ref: 6cd8ed969e453de03cf28814a295b993c6121bf5
parent: cb9ca4fc2637443d9ec38060d43b73a47649f452
author: Simon Howard <[email protected]>
date: Mon Sep 25 17:45:30 EDT 2006

Fix colors.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 667

--- a/src/g_game.c
+++ b/src/g_game.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: g_game.c 664 2006-09-25 20:41:59Z fraggle $
+// $Id: g_game.c 667 2006-09-25 21:45:30Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -134,7 +134,7 @@
 
 
 static const char
-rcsid[] = "$Id: g_game.c 664 2006-09-25 20:41:59Z fraggle $";
+rcsid[] = "$Id: g_game.c 667 2006-09-25 21:45:30Z fraggle $";
 
 #include <string.h>
 #include <stdlib.h>
@@ -352,9 +352,10 @@
  
 
 #define MOUSE_SPEED_BOX_WIDTH 16
-#define COLOR_RED   0xb0
-#define COLOR_BLACK 0x00
-#define COLOR_WHITE 0xff
+#define COLOR_RED    0xb0
+#define COLOR_BLACK  0x00
+#define COLOR_WHITE  0x04
+#define COLOR_YELLOW 0xe7
 
 void G_DrawMouseSpeedBox(void)
 {
@@ -433,7 +434,14 @@
     {
         if (x < linelen)
         {
-            color = COLOR_WHITE;
+            if (x < redline_x)
+            {
+                color = COLOR_WHITE;
+            }
+            else
+            {
+                color = COLOR_YELLOW;
+            }
         }
         else
         {