games/commandergenius: Updated for version 1.9.9.2beta.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-07-25 00:45:08 -04:00 committed by Willy Sudiarto Raharjo
parent 7f0921c3e0
commit e23b0ab87e
3 changed files with 7 additions and 23 deletions

View file

@ -1,16 +0,0 @@
diff --git a/src/engine/keen/galaxy/CPassive.cpp b/src/engine/keen/galaxy/CPassive.cpp
index dfc2dbe..34ccc8c 100755
--- a/src/engine/keen/galaxy/CPassive.cpp
+++ b/src/engine/keen/galaxy/CPassive.cpp
@@ -392,7 +392,11 @@ void CPassiveGalaxy::processTitle()
darkener.create(0, gameRes.w, gameRes.h, 32,
0, 0, 0, 0);
+
+#if SDL_VERSION_ATLEAST(2, 0, 0)
darkener.setBlendMode(SDL_BLENDMODE_BLEND);
+#endif
+
darkener.setAlpha(128);
auto *sfc = mBackgroundStarWars.getSDLSurface();

View file

@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20170725 bkw:
# - updated for 1.9.9.2beta
# 20170301 bkw:
# - updated for 1.9.8.7beta
# - fix the build for the case where SDL2 is installed but SDL2_image is not.
@ -15,7 +18,7 @@
# 20170122 bkw: updated for 1.9.8.1beta.
PRGNAM=commandergenius
VERSION=${VERSION:-1.9.8.7beta}
VERSION=${VERSION:-1.9.9.2beta}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -76,9 +79,6 @@ find -L . -type d -a -exec chmod 755 '{}' '+'
# placate desktop-file-validate
sed -i 's,Application;,,' share/$DESKTOP
# Apply upstream fix for building with SDL-1.2
patch -p1 < $CWD/a67003b_sdl_12_compatibility.diff
# SDL 2 is optional. I prefer it, others may not.
SDLOPT="-DUSE_SDL2=no"
SDLVER=1

View file

@ -1,8 +1,8 @@
PRGNAM="commandergenius"
VERSION="1.9.8.7beta"
VERSION="1.9.9.2beta"
HOMEPAGE="https://github.com/gerstrong/Commander-Genius"
DOWNLOAD="https://github.com/gerstrong/Commander-Genius/archive/v1987beta/Commander-Genius-1987beta.tar.gz"
MD5SUM="21c2936c7e801542319a1a4cc0991516"
DOWNLOAD="https://github.com/gerstrong/Commander-Genius/archive/v1992beta/Commander-Genius-1992beta.tar.gz"
MD5SUM="717cd605d0fcb3664a249d5db6ffa42c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""