mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
Merge pull request #420 from somaen/disableSDLAlpha
SDL: Avoid having SDL_SRCALPHA set even if we have alpha in the pixelformat.
This commit is contained in:
commit
063d008e72
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user