diff options
Diffstat (limited to 'engines/parallaction/disk_br.cpp')
-rw-r--r-- | engines/parallaction/disk_br.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index c4790c42ba..b7bf84f5ba 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -569,6 +569,11 @@ GfxObj* AmigaDisk_br::loadStatic(const char* name) { free(pal); delete stream; + // Static pictures are drawn used the upper half of the palette: this must be + // done before shadow mask is applied. This way, only really transparent pixels + // will have zero as a color. + adjustForPalette(*surf); + // NOTE: this assumes that the extension is always present in the file name sName.deleteLastChar(); sName.deleteLastChar(); @@ -598,9 +603,6 @@ GfxObj* AmigaDisk_br::loadStatic(const char* name) { delete stream; } - // static pictures are drawn used the upper half of the palette - adjustForPalette(*surf); - return new GfxObj(0, new SurfaceToFrames(surf), name); } |