summaryrefslogtreecommitdiff
path: root/games/commandergenius/a67003b_sdl_12_compatibility.diff
blob: 614082de80d55c03a3a2b9f94cc258012a5afdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();