mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
Fixed the transparency problems of static objects in BRA.
svn-id: r39486
This commit is contained in:
parent
95c58e76d6
commit
7697fd9cc7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user