[Scummvm-cvs-logs] SF.net SVN: scummvm: [23176] scummvm/branches/branch-0-9-0/engines/scumm
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Mon Jun 19 09:44:47 CEST 2006
Revision: 23176
Author: kirben
Date: 2006-06-19 00:44:41 -0700 (Mon, 19 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=23176&view=rev
Log Message:
-----------
Add patch for bug #1507856 - INDY3 VGA: Crashes in Sewer
Modified Paths:
--------------
scummvm/branches/branch-0-9-0/engines/scumm/gfx.cpp
scummvm/branches/branch-0-9-0/engines/scumm/intern.h
Modified: scummvm/branches/branch-0-9-0/engines/scumm/gfx.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/scumm/gfx.cpp 2006-06-19 04:12:16 UTC (rev 23175)
+++ scummvm/branches/branch-0-9-0/engines/scumm/gfx.cpp 2006-06-19 07:44:41 UTC (rev 23176)
@@ -789,6 +789,9 @@
val = +1;
redrawBGStrip(0, 1);
} else if (_fullRedraw || diff != 0) {
+ if (_game.version <= 5) {
+ ((ScummEngine_v5 *)this)->clearFlashlight();
+ }
_bgNeedsRedraw = false;
redrawBGStrip(0, gdi._numStrips);
}
@@ -1089,6 +1092,11 @@
}
}
+void ScummEngine_v5::clearFlashlight() {
+ _flashlight.isDrawn = false;
+ _flashlight.buffer = NULL;
+}
+
void ScummEngine_v5::drawFlashlight() {
int i, j, x, y;
VirtScreen *vs = &virtscr[kMainVirtScreen];
Modified: scummvm/branches/branch-0-9-0/engines/scumm/intern.h
===================================================================
--- scummvm/branches/branch-0-9-0/engines/scumm/intern.h 2006-06-19 04:12:16 UTC (rev 23175)
+++ scummvm/branches/branch-0-9-0/engines/scumm/intern.h 2006-06-19 07:44:41 UTC (rev 23176)
@@ -59,6 +59,7 @@
public:
ScummEngine_v5(OSystem *syst, const DetectorResult &dr);
+ void clearFlashlight();
protected:
virtual void setupOpcodes();
virtual void executeOpcode(byte i);
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