diff options
author | Colin Snover | 2017-01-08 19:34:24 -0600 |
---|---|---|
committer | Colin Snover | 2017-01-09 19:34:54 -0600 |
commit | b818e54027bf7730893e4199e02684e2a02cfb99 (patch) | |
tree | f1f6690cfa0d28072b658b9cb601a73da9292390 /engines/sci/graphics | |
parent | 70cfdb6a1f79fa25a699e42bf27e6e3fdcb8521d (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 7 |
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; |