Fixed the transparency problems of static objects in BRA.

svn-id: r39486
This commit is contained in:
Nicola Mettifogo 2009-03-17 16:45:09 +00:00
parent 95c58e76d6
commit 7697fd9cc7

View File

@ -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);
}