diff options
author | Nicola Mettifogo | 2009-03-17 16:45:09 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2009-03-17 16:45:09 +0000 |
commit | 7697fd9cc7b25f35623a8381376c9168c6b6950e (patch) | |
tree | 73977e4878e2bec93b70d6cb6578c2703b0a2502 /engines/parallaction | |
parent | 95c58e76d646cf9a14374d2ba1010ada7723e874 (diff) | |
download | scummvm-rg350-7697fd9cc7b25f35623a8381376c9168c6b6950e.tar.gz scummvm-rg350-7697fd9cc7b25f35623a8381376c9168c6b6950e.tar.bz2 scummvm-rg350-7697fd9cc7b25f35623a8381376c9168c6b6950e.zip |
Fixed the transparency problems of static objects in BRA.
svn-id: r39486
Diffstat (limited to 'engines/parallaction')
-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); } |