From d877a0a8d1bde533ef558c8f7dffb15275285e4a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 28 May 2007 13:01:08 +0000 Subject: Fix glitches in AtariST demo of Elvira 1. svn-id: r26997 --- engines/agos/agos.cpp | 4 ++-- engines/agos/draw.cpp | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'engines/agos') diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index c9050bee87..7424e5782a 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -968,14 +968,14 @@ int AGOSEngine::go() { for (i = 0; i < 4; i++) { setWindowImage(3, 9902 + i); debug(0, "Displaying image %d", 9902 + i); - delay(1000); + delay(3000); } for (i = 4; i < 16; i++) { setWindowImage(4, 9902 + i); debug(0, "Displaying image %d", 9902 + i); - delay(1000); + delay(3000); } } } diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp index 5b5b42cbbb..45c6d4a6da 100644 --- a/engines/agos/draw.cpp +++ b/engines/agos/draw.cpp @@ -306,6 +306,11 @@ void AGOSEngine::dirtyClips() { } void AGOSEngine::restoreBackGround() { + if (getGameType() == GType_ELVIRA1 && getPlatform() == Common::kPlatformAtariST && + (getFeatures() & GF_DEMO)) { + return; + } + AnimTable *animTable; uint images = 0; @@ -361,6 +366,11 @@ void AGOSEngine::restoreBackGround() { } void AGOSEngine::saveBackGround(VgaSprite *vsp) { + if (getGameType() == GType_ELVIRA1 && getPlatform() == Common::kPlatformAtariST && + (getFeatures() & GF_DEMO)) { + return; + } + if ((vsp->flags & kDFSkipStoreBG) || !vsp->image) return; -- cgit v1.2.3