summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/sdl2softwareimagehelper.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources/sdl2softwareimagehelper.h b/src/resources/sdl2softwareimagehelper.h
index 907d2242e..99a1a67e9 100644
--- a/src/resources/sdl2softwareimagehelper.h
+++ b/src/resources/sdl2softwareimagehelper.h
@@ -95,7 +95,14 @@ class SDL2SoftwareImageHelper final : public ImageHelper
SDL_Rect *const dstrect);
static void setFormat(SDL_PixelFormat *const format)
- { mFormat = format; }
+ {
+ mFormat = format;
+ if (mFormat)
+ {
+ mFormat->Amask = ~(format->Rmask
+ | format->Gmask | format->Bmask);
+ }
+ }
protected:
/** SDL_Surface to SDL_Surface Image loader */