summaryrefslogtreecommitdiff
path: root/src/resources/atlasmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-21 14:37:03 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:14 +0300
commitec1beaa2ee07368368e9bd45fe400eedc57419eb (patch)
treec8f4792dc2316c7cc852bcf6738dff7557d9b872 /src/resources/atlasmanager.cpp
parent8d4af08b165e10d7e82380074ce733ee9d068c6a (diff)
downloadManaVerse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.gz
ManaVerse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.bz2
ManaVerse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.tar.xz
ManaVerse-ec1beaa2ee07368368e9bd45fe400eedc57419eb.zip
first part of fixes for compilation with SDL2
Diffstat (limited to 'src/resources/atlasmanager.cpp')
-rw-r--r--src/resources/atlasmanager.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}
}