summaryrefslogtreecommitdiff
path: root/games/qonk/patches/patch-src_messages.cpp
blob: 20eb0ecc7675c959e163b0748644754a2d5c0ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-src_messages.cpp,v 1.1 2016/12/31 10:01:11 dholland Exp $

Fix display color of (some) messages.

--- src/messages.cpp.orig	2007-09-14 05:43:03.000000000 +0000
+++ src/messages.cpp
@@ -21,8 +21,8 @@ Message::Message( Uint32 time, string me
 Message::Message( Uint32 time, string message, Uint32 displayTime, Uint32 color ) {
   this->message = string( "[" ) + Timer::getTimeMMSS(time) + "] " + message;
   this->displayTime = displayTime;
-  this->r = getGreen( color );
-  this->g = getRed( color );
+  this->r = getRed( color );
+  this->g = getGreen( color );
   this->b = getBlue( color );
 }
 
@@ -37,8 +37,8 @@ Message::Message( Uint32 time, string me
 Message::Message( Uint32 time, string message, Uint32 color ) {
   this->message = string( "[" ) + Timer::getTimeMMSS(time) + "] " + message;
   this->displayTime = 10000;
-  this->r = getGreen( color );
-  this->g = getRed( color );
+  this->r = getRed( color );
+  this->g = getGreen( color );
   this->b = getBlue( color );
 }