summaryrefslogtreecommitdiff
path: root/src/resources/surfaceimagehelper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-25 19:36:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-25 23:26:55 +0300
commitd5847d54a527c41006cb4cade15d0b6346490e77 (patch)
tree5146fc48f6e2d10eb3f41f1b20eac16f66b36f28 /src/resources/surfaceimagehelper.cpp
parent5b20a3d95717f75d33801c4dd2b093e106d90541 (diff)
downloadplus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.gz
plus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.bz2
plus-d5847d54a527c41006cb4cade15d0b6346490e77.tar.xz
plus-d5847d54a527c41006cb4cade15d0b6346490e77.zip
add partial support for software mode with SDL2.
Diffstat (limited to 'src/resources/surfaceimagehelper.cpp')
-rw-r--r--src/resources/surfaceimagehelper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/surfaceimagehelper.cpp b/src/resources/surfaceimagehelper.cpp
index 1b5997ce0..45a7d95fd 100644
--- a/src/resources/surfaceimagehelper.cpp
+++ b/src/resources/surfaceimagehelper.cpp
@@ -120,7 +120,7 @@ Image *SurfaceImageHelper::createTextSurface(SDL_Surface *const tmpImage,
SDL_Surface *image = SDLDuplicateSurface(tmpImage);
img = new Image(image, hasAlpha, alphaChannel);
- img->mAlpha = alpha;
+ img->setAlpha(alpha);
return img;
}