aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2007-07-09 02:27:38 +0000
committerTravis Howell2007-07-09 02:27:38 +0000
commit705c1e8403dc0b96ddfc488c93e2631a146cbb85 (patch)
tree5860cabafcd6a63b8257ae2a48991adb7186abbe /engines
parent0a662bfb7e057b0d5302a78687387543836c8c32 (diff)
downloadscummvm-rg350-705c1e8403dc0b96ddfc488c93e2631a146cbb85.tar.gz
scummvm-rg350-705c1e8403dc0b96ddfc488c93e2631a146cbb85.tar.bz2
scummvm-rg350-705c1e8403dc0b96ddfc488c93e2631a146cbb85.zip
Fix masking crash in Simon the Sorcerer 1 (Floppy DOS Demo), the address and pitch wasn't set for state->surf2.
svn-id: r27985
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/gfx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp
index 2b530fdcd6..20ab84d15d 100644
--- a/engines/agos/gfx.cpp
+++ b/engines/agos/gfx.cpp
@@ -666,6 +666,9 @@ void AGOSEngine_Simon1::drawImage(VC10_state *state) {
} 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;