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/draw.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/agos/draw.cpp') 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