[Scummvm-cvs-logs] SF.net SVN: scummvm: [29691] scummvm/trunk/engines/lure/surface.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Dec 2 08:24:41 CET 2007


Revision: 29691
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29691&view=rev
Author:   dreammaster
Date:     2007-12-01 23:24:41 -0800 (Sat, 01 Dec 2007)

Log Message:
-----------
Modified the loadScreen method to accommodate some screens decoding to a single byte more than the actual screen size

Modified Paths:
--------------
    scummvm/trunk/engines/lure/surface.cpp

Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp	2007-12-02 04:52:01 UTC (rev 29690)
+++ scummvm/trunk/engines/lure/surface.cpp	2007-12-02 07:24:41 UTC (rev 29691)
@@ -96,10 +96,12 @@
 void Surface::loadScreen(uint16 resourceId) {
 	MemoryBlock *rawData = Disk::getReference().getEntry(resourceId);
 	PictureDecoder decoder;
-	MemoryBlock *tmpScreen = decoder.decode(rawData, FULL_SCREEN_HEIGHT * FULL_SCREEN_WIDTH);
+	MemoryBlock *tmpScreen = decoder.decode(rawData, FULL_SCREEN_HEIGHT * FULL_SCREEN_WIDTH + 1);
 	delete rawData;
 	empty();
-	copyFrom(tmpScreen, MENUBAR_Y_SIZE * FULL_SCREEN_WIDTH);
+
+	_data->copyFrom(tmpScreen, 0, MENUBAR_Y_SIZE * FULL_SCREEN_WIDTH, 
+		(FULL_SCREEN_HEIGHT - MENUBAR_Y_SIZE) * FULL_SCREEN_WIDTH);
 	
 	delete tmpScreen;
 }


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