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

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Jul 9 04:27:39 CEST 2007


Revision: 27985
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27985&view=rev
Author:   Kirben
Date:     2007-07-08 19:27:38 -0700 (Sun, 08 Jul 2007)

Log Message:
-----------
Fix masking crash in Simon the Sorcerer 1 (Floppy DOS Demo), the address and pitch wasn't set for state->surf2.

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

Modified: scummvm/trunk/engines/agos/gfx.cpp
===================================================================
--- scummvm/trunk/engines/agos/gfx.cpp	2007-07-09 01:26:54 UTC (rev 27984)
+++ scummvm/trunk/engines/agos/gfx.cpp	2007-07-09 02:27:38 UTC (rev 27985)
@@ -666,6 +666,9 @@
 	} else if (getGameType() == GType_SIMON1 && (getFeatures() & GF_DEMO)) {
 		// The DOS Floppy demo was based off Waxworks engine
 		if (_windowNum == 4 || (_windowNum >= 10 && _windowNum <= 27)) {
+			state->surf2_addr = getBackGround();
+			state->surf2_pitch = _screenWidth;
+
 			state->surf_addr = _window4BackScn;
 			state->surf_pitch = _videoWindows[18] * 16;
 


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