summaryrefslogtreecommitdiff
path: root/src/resources/surfaceimagehelper.cpp
diff options
context:
space:
mode:
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;
}