slackbuilds_ponce/games/commandergenius/a67003b_sdl_12_compatibility.diff
B. Watson a1d9976b46 games/commandergenius: Updated for version 1.9.8.7beta.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2017-03-04 07:26:37 +07:00

16 lines
544 B
Diff

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();