[Scummvm-cvs-logs] scummvm master -> 75137862967cd18a87dec16a6a322f9f97d54202
bluegr
md5 at scummvm.org
Fri Jul 6 11:12:33 CEST 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7513786296 SCI: Add a hack to handle the internal script resolution in Phantasmagoria
Commit: 75137862967cd18a87dec16a6a322f9f97d54202
https://github.com/scummvm/scummvm/commit/75137862967cd18a87dec16a6a322f9f97d54202
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2012-07-06T02:11:50-07:00
Commit Message:
SCI: Add a hack to handle the internal script resolution in Phantasmagoria
Changed paths:
engines/sci/graphics/frameout.cpp
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 20b8a24..defc55e 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -131,6 +131,20 @@ void GfxFrameout::kernelAddPlane(reg_t object) {
tmpRunningWidth = 320;
tmpRunningHeight = 200;
}
+
+ // HACK: Game scripts in Phantasmagoria 1 seem to use a very odd internal
+ // resolution, or some other extra calculation is taking place.
+ // Changing the internal script dimensions to these odd values fixes
+ // object positioning, but makes the interface picture slightly bigger,
+ // thus there is a small gap between the room picture and the interface
+ // edges, plus a couple of pixels of the picture are cut off in the
+ // bottom.
+ // FIXME: Find how to properly handle the script dimensions in
+ // Phantasmagoria. This can't be right.
+ if (g_sci->getGameId() == GID_PHANTASMAGORIA) {
+ tmpRunningWidth = 325;
+ tmpRunningHeight = 213;
+ }
_coordAdjuster->setScriptsResolution(tmpRunningWidth, tmpRunningHeight);
}
More information about the Scummvm-git-logs
mailing list