[Scummvm-cvs-logs] SF.net SVN: scummvm:[43264] scummvm/trunk/engines/scumm/gfx.cpp

Hkz at users.sourceforge.net Hkz at users.sourceforge.net
Tue Aug 11 12:28:15 CEST 2009


Revision: 43264
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43264&view=rev
Author:   Hkz
Date:     2009-08-11 10:28:15 +0000 (Tue, 11 Aug 2009)

Log Message:
-----------
Maniac Mansion NES: added workaround to fix dirty screen when loading a narrow room from a full width room

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/gfx.cpp

Modified: scummvm/trunk/engines/scumm/gfx.cpp
===================================================================
--- scummvm/trunk/engines/scumm/gfx.cpp	2009-08-11 10:18:10 UTC (rev 43263)
+++ scummvm/trunk/engines/scumm/gfx.cpp	2009-08-11 10:28:15 UTC (rev 43264)
@@ -671,6 +671,16 @@
 					width -= 16;
 				if (width <= 0)
 					return;
+
+				// HACK: In this way we won't get a screen with dirty side strips when
+				// loading a narrow room in a full screen room.
+				if(width == 224 && height == 240 && x == 16) { 
+					char blackbuf[16 * 240];
+					memset(blackbuf, 0, 16*240); // Prepare a buffer 16px wide and 240px high, to fit on a lateral strip
+
+					width = 240; // Fix right strip
+					_system->copyRectToScreen((const byte *)blackbuf, 16, 0, 0, 16, 240); // Fix left strip
+				}
 			}
 
 		}


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