aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2016-03-18 18:49:10 -0500
committerColin Snover2016-03-18 18:51:01 -0500
commitabee16c56333e5caafef7f5b9f30ac775dd1f214 (patch)
treede07ea1c2cc8da46258cfafdde5d3dddae2f12cf
parentd03b37cc2ec8fcf3d5062bb40e0c226e8f6cb4f3 (diff)
downloadscummvm-rg350-abee16c56333e5caafef7f5b9f30ac775dd1f214.tar.gz
scummvm-rg350-abee16c56333e5caafef7f5b9f30ac775dd1f214.tar.bz2
scummvm-rg350-abee16c56333e5caafef7f5b9f30ac775dd1f214.zip
SCI32: Use correct script dimensions for later SCI32 games
These values are hard-coded in the engine executable for each game.
-rw-r--r--engines/sci/graphics/frameout.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 062cd8b600..6454a1eb32 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -115,6 +115,22 @@ GfxFrameout::GfxFrameout(SegManager *segMan, ResourceManager *resMan, GfxCoordAd
_defaultUnknownC = unknownCDefaults[1];
}
+ switch (g_sci->getGameId()) {
+ case GID_GK2:
+ case GID_LIGHTHOUSE:
+ case GID_LSL7:
+ case GID_PHANTASMAGORIA2:
+ case GID_PQSWAT:
+ case GID_TORIN:
+ case GID_RAMA:
+ _currentBuffer.scriptWidth = 640;
+ _currentBuffer.scriptHeight = 480;
+ break;
+ default:
+ // default script width for other games is 320x200
+ break;
+ }
+
// TODO: Nothing in the renderer really uses this. Currently,
// the cursor renderer does, and kLocalToGlobal/kGlobalToLocal
// do, but in the real engine (1) the cursor is handled in