summaryrefslogtreecommitdiffstats
path: root/games/commandergenius/a67003b_sdl_12_compatibility.diff
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2017-03-01 02:27:29 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-04 07:26:37 +0700
commita1d9976b46a398b965de6e73955f060069e35725 (patch)
treed63e5f5f81534118cbdbbc3811771e70e86bb11d /games/commandergenius/a67003b_sdl_12_compatibility.diff
parentc19d3dd2b4441df919ad9d021234633e41520ad9 (diff)
downloadslackbuilds-a1d9976b46a398b965de6e73955f060069e35725.tar.gz
slackbuilds-a1d9976b46a398b965de6e73955f060069e35725.tar.xz
games/commandergenius: Updated for version 1.9.8.7beta.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/commandergenius/a67003b_sdl_12_compatibility.diff')
-rw-r--r--games/commandergenius/a67003b_sdl_12_compatibility.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/commandergenius/a67003b_sdl_12_compatibility.diff b/games/commandergenius/a67003b_sdl_12_compatibility.diff
new file mode 100644
index 0000000000..614082de80
--- /dev/null
+++ b/games/commandergenius/a67003b_sdl_12_compatibility.diff
@@ -0,0 +1,16 @@
+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();