[Scummvm-cvs-logs] scummvm master -> fe7d2026b1aae2915fea7de0426eca7f1e1d5af8
bluegr
md5 at scummvm.org
Fri Mar 4 13:39:05 CET 2011
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:
fe7d2026b1 SCI: Added a comment for the additional code in kDisplay
Commit: fe7d2026b1aae2915fea7de0426eca7f1e1d5af8
https://github.com/scummvm/scummvm/commit/fe7d2026b1aae2915fea7de0426eca7f1e1d5af8
Author: md5 (md5 at scummvm.org)
Date: 2011-03-04T04:37:41-08:00
Commit Message:
SCI: Added a comment for the additional code in kDisplay
This extra code that is responsible for changing text placing has been
found in SCI1 middle (i.e. LSL1VGA) and newer games
Changed paths:
engines/sci/graphics/paint16.cpp
diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp
index 4449076..33986f1 100644
--- a/engines/sci/graphics/paint16.cpp
+++ b/engines/sci/graphics/paint16.cpp
@@ -568,6 +568,9 @@ reg_t GfxPaint16::kernelDisplay(const char *text, int argc, reg_t *argv) {
// now drawing the text
_text16->Size(rect, text, -1, width);
rect.moveTo(_ports->getPort()->curLeft, _ports->getPort()->curTop);
+ // Note: This code has been found in SCI1 middle and newer games. It was
+ // previously only for SCI1 late and newer, but the LSL1 interpreter contains
+ // this code.
if (getSciVersion() >= SCI_VERSION_1_MIDDLE) {
int16 leftPos = rect.right <= _screen->getWidth() ? 0 : _screen->getWidth() - rect.right;
int16 topPos = rect.bottom <= _screen->getHeight() ? 0 : _screen->getHeight() - rect.bottom;
More information about the Scummvm-git-logs
mailing list