From ec1beaa2ee07368368e9bd45fe400eedc57419eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Aug 2013 14:37:03 +0300 Subject: first part of fixes for compilation with SDL2 --- src/resources/atlasmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/resources/atlasmanager.cpp') diff --git a/src/resources/atlasmanager.cpp b/src/resources/atlasmanager.cpp index 1d7147d72..1292baeb7 100644 --- a/src/resources/atlasmanager.cpp +++ b/src/resources/atlasmanager.cpp @@ -239,7 +239,11 @@ SDL_Surface *AtlasManager::createSDLAtlas(TextureAtlas *const atlas) if (image) { +#ifdef USE_SDL2 + SDL_SetSurfaceAlphaMod(image->mSDLSurface, 255); +#else SDL_SetAlpha(image->mSDLSurface, 0, SDL_ALPHA_OPAQUE); +#endif graphics->drawImage(image, item->x, item->y); } } -- cgit v1.2.3-60-g2f50