summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordholland <dholland>2016-12-31 10:01:11 +0000
committerdholland <dholland>2016-12-31 10:01:11 +0000
commit5e914691b536a81988cbb142bd64386d9ffe548a (patch)
tree782ae0ebd1bc098e3a6b596709e7dbb0f5507058 /games
parent36c8e12a148c7e2f13a32bacb679a954d0b63c5a (diff)
downloadpkgsrc-5e914691b536a81988cbb142bd64386d9ffe548a.tar.gz
Fix message display color. PKGREVISION -> 11
Diffstat (limited to 'games')
-rw-r--r--games/qonk/Makefile4
-rw-r--r--games/qonk/distinfo3
-rw-r--r--games/qonk/patches/patch-src_messages.cpp28
3 files changed, 32 insertions, 3 deletions
diff --git a/games/qonk/Makefile b/games/qonk/Makefile
index aa0a360612d..61b814bb7c7 100644
--- a/games/qonk/Makefile
+++ b/games/qonk/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2016/12/13 19:17:42 dholland Exp $
+# $NetBSD: Makefile,v 1.15 2016/12/31 10:01:11 dholland Exp $
#
DISTNAME= qonk-0.3.1
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qonk/}
diff --git a/games/qonk/distinfo b/games/qonk/distinfo
index 2acebe3b830..82b1c6a3c06 100644
--- a/games/qonk/distinfo
+++ b/games/qonk/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 20:57:02 agc Exp $
+$NetBSD: distinfo,v 1.5 2016/12/31 10:01:11 dholland Exp $
SHA1 (qonk-0.3.1.tar.gz) = 703fc8282642ff20986c9a395dc6626d4b087ed9
RMD160 (qonk-0.3.1.tar.gz) = 6ed1ad1fb67cea6677d39d1201da1eca9ea4479b
@@ -20,4 +20,5 @@ SHA1 (patch-ap) = 3f21ccc5a37e9c16648e532df10799c4a34675cd
SHA1 (patch-src_lisp_lexer.cpp) = 3bc2da31dbb72487a96655d0494083a357c10a28
SHA1 (patch-src_lisp_lisp_cpp) = 4dfa6c287a221c38348531ef5bceb55d7d20f872
SHA1 (patch-src_lisp_parser.cpp) = 4cafcda558d3b4a1bc0efb1ecbad55f045b58532
+SHA1 (patch-src_messages.cpp) = b8a5a4c37c2e12da57def85184344ed7fb79dda8
SHA1 (patch-src_sdl__driver.cpp) = 338a2aa7fa17761ff88d088cdd701be8d7c5fedf
diff --git a/games/qonk/patches/patch-src_messages.cpp b/games/qonk/patches/patch-src_messages.cpp
new file mode 100644
index 00000000000..20eb0ecc767
--- /dev/null
+++ b/games/qonk/patches/patch-src_messages.cpp
@@ -0,0 +1,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 );
+ }
+