diff options
Diffstat (limited to 'games/commandergenius/a67003b_sdl_12_compatibility.diff')
-rw-r--r-- | games/commandergenius/a67003b_sdl_12_compatibility.diff | 16 |
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(); |