aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-01-13 01:22:39 -0800
committerStrangerke2014-01-13 01:22:39 -0800
commit063d008e7296e16ddf85628da62265875bac0120 (patch)
treefaf62db4461ccc3f677c3a3e10312d72533038a8
parent4df249b9cec6c9d4ecc0aa8129beb816379d77fa (diff)
parent6677a973c2b9b742897441d3b8571b81b41fd297 (diff)
downloadscummvm-rg350-063d008e7296e16ddf85628da62265875bac0120.tar.gz
scummvm-rg350-063d008e7296e16ddf85628da62265875bac0120.tar.bz2
scummvm-rg350-063d008e7296e16ddf85628da62265875bac0120.zip
Merge pull request #420 from somaen/disableSDLAlpha
SDL: Avoid having SDL_SRCALPHA set even if we have alpha in the pixelformat.
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index 0a4dcf3ea3..89802ac8ab 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -746,6 +746,8 @@ bool SurfaceSdlGraphicsManager::loadGFXMode() {
if (_screen == NULL)
error("allocating _screen failed");
+ // Avoid having SDL_SRCALPHA set even if we supplied an alpha-channel in the format.
+ SDL_SetAlpha(_screen, 0, 255);
#else
_screen = SDL_CreateRGBSurface(SDL_SWSURFACE, _videoMode.screenWidth, _videoMode.screenHeight, 8, 0, 0, 0, 0);
if (_screen == NULL)