From 7697fd9cc7b25f35623a8381376c9168c6b6950e Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Tue, 17 Mar 2009 16:45:09 +0000 Subject: Fixed the transparency problems of static objects in BRA. svn-id: r39486 --- engines/parallaction/disk_br.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines') 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); } -- cgit v1.2.3