diff options
author | dholland <dholland@pkgsrc.org> | 2016-12-31 10:01:11 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2016-12-31 10:01:11 +0000 |
commit | 3476f3d0ca5c6dabee80ff9011135ab28009d290 (patch) | |
tree | 782ae0ebd1bc098e3a6b596709e7dbb0f5507058 | |
parent | d291e1ec2f00fc0f9bf910922c9f49fda67a7d91 (diff) | |
download | pkgsrc-3476f3d0ca5c6dabee80ff9011135ab28009d290.tar.gz |
Fix message display color. PKGREVISION -> 11
-rw-r--r-- | games/qonk/Makefile | 4 | ||||
-rw-r--r-- | games/qonk/distinfo | 3 | ||||
-rw-r--r-- | games/qonk/patches/patch-src_messages.cpp | 28 |
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 ); + } + |