[Scummvm-cvs-logs] SF.net SVN: scummvm:[40132] scummvm/trunk/engines/sci/gfx/res_view1.cpp

waltervn at users.sourceforge.net waltervn at users.sourceforge.net
Sat Apr 25 01:05:08 CEST 2009


Revision: 40132
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40132&view=rev
Author:   waltervn
Date:     2009-04-24 23:05:08 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
SCI: Initialize pixmap to transparency before decoding cel RLE data. This
fixes some of the views in KQ6.

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gfx/res_view1.cpp

Modified: scummvm/trunk/engines/sci/gfx/res_view1.cpp
===================================================================
--- scummvm/trunk/engines/sci/gfx/res_view1.cpp	2009-04-24 22:50:24 UTC (rev 40131)
+++ scummvm/trunk/engines/sci/gfx/res_view1.cpp	2009-04-24 23:05:08 UTC (rev 40132)
@@ -68,6 +68,10 @@
 	int writepos = mirrored ? xl : 0;
 	int linebase = 0;
 
+	// For some cels the RLE data ends at the last non-transparent pixel,
+	// so we initialize the whole pixmap to transparency first
+	memset(dest, color_key, pixmap_size);
+
 	while ((mirrored ? linebase < pixmap_size : writepos < pixmap_size) && literal_pos < size && runlength_pos < size) {
 		int op = resource[runlength_pos];
 		int bytes;


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