[Scummvm-cvs-logs] SF.net SVN: scummvm:[39486] scummvm/trunk/engines/parallaction/disk_br.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Tue Mar 17 17:45:09 CET 2009


Revision: 39486
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39486&view=rev
Author:   peres001
Date:     2009-03-17 16:45:09 +0000 (Tue, 17 Mar 2009)

Log Message:
-----------
Fixed the transparency problems of static objects in BRA.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/disk_br.cpp

Modified: scummvm/trunk/engines/parallaction/disk_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/disk_br.cpp	2009-03-17 16:08:25 UTC (rev 39485)
+++ scummvm/trunk/engines/parallaction/disk_br.cpp	2009-03-17 16:45:09 UTC (rev 39486)
@@ -569,6 +569,11 @@
 	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 @@
 		delete stream;
 	}
 
-	// static pictures are drawn used the upper half of the palette
-	adjustForPalette(*surf);
-
 	return new GfxObj(0, new SurfaceToFrames(surf), name);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list