From fe7d2026b1aae2915fea7de0426eca7f1e1d5af8 Mon Sep 17 00:00:00 2001 From: md5 Date: Fri, 4 Mar 2011 14:37:41 +0200 Subject: 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 --- engines/sci/graphics/paint16.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engines/sci/graphics/paint16.cpp b/engines/sci/graphics/paint16.cpp index 4449076fb5..33986f1196 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; -- cgit v1.2.3