aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/frameout.cpp
diff options
context:
space:
mode:
authorColin Snover2017-01-08 19:34:24 -0600
committerColin Snover2017-01-09 19:34:54 -0600
commitb818e54027bf7730893e4199e02684e2a02cfb99 (patch)
treef1f6690cfa0d28072b658b9cb601a73da9292390 /engines/sci/graphics/frameout.cpp
parent70cfdb6a1f79fa25a699e42bf27e6e3fdcb8521d (diff)
downloadscummvm-rg350-b818e54027bf7730893e4199e02684e2a02cfb99.tar.gz
scummvm-rg350-b818e54027bf7730893e4199e02684e2a02cfb99.tar.bz2
scummvm-rg350-b818e54027bf7730893e4199e02684e2a02cfb99.zip
SCI32: Fix crashes and bad cel positioning in GK2 demo
Diffstat (limited to 'engines/sci/graphics/frameout.cpp')
-rw-r--r--engines/sci/graphics/frameout.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index fe43c75e5a..57512f1b66 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -85,7 +85,6 @@ GfxFrameout::GfxFrameout(SegManager *segMan, GfxPalette32 *palette, GfxTransitio
switch (g_sci->getGameId()) {
case GID_HOYLE5:
- case GID_GK2:
case GID_LIGHTHOUSE:
case GID_LSL7:
case GID_PHANTASMAGORIA2:
@@ -95,6 +94,12 @@ GfxFrameout::GfxFrameout(SegManager *segMan, GfxPalette32 *palette, GfxTransitio
_currentBuffer.scriptWidth = 640;
_currentBuffer.scriptHeight = 480;
break;
+ case GID_GK2:
+ if (!g_sci->isDemo()) {
+ _currentBuffer.scriptWidth = 640;
+ _currentBuffer.scriptHeight = 480;
+ }
+ break;
default:
// default script width for other games is 320x200
break;