diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 68a987bc61b..f6ab1808971 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -765,13 +765,10 @@ int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha) { if (SDL_SetSurfaceBlendMode(surface, SDL_BLENDMODE_NONE)) { return -1; } - SDL_SetSurfaceRLE(surface, 0); } else { if (SDL_SetSurfaceBlendMode(surface, SDL_BLENDMODE_BLEND)) { return -1; } - if (flag & SDL_RLEACCEL) - SDL_SetSurfaceRLE(surface, 1); } return 0; @@ -779,13 +776,7 @@ int SDL_SetAlpha(SDL_Surface *surface, Uint32 flag, Uint8 alpha) { #undef SDL_SetColorKey int SDL_SetColorKey_replacement(SDL_Surface *surface, Uint32 flag, Uint32 key) { - if (SDL_SetColorKey(surface, SDL_TRUE, key)) { - return -1; - } - - if (flag & SDL_RLEACCEL) - SDL_SetSurfaceRLE(surface, 1); - return 0; + return SDL_SetColorKey(surface, SDL_TRUE, key) ? -1 : 0; } #endif