diff options
author | md5 | 2011-03-04 14:37:41 +0200 |
---|---|---|
committer | md5 | 2011-03-04 14:37:41 +0200 |
commit | fe7d2026b1aae2915fea7de0426eca7f1e1d5af8 (patch) | |
tree | a8d571ded50763fae7e6730fe1d183017742ab20 | |
parent | 6b41673fab3da5603b4947aad0839570efcfe165 (diff) | |
download | scummvm-rg350-fe7d2026b1aae2915fea7de0426eca7f1e1d5af8.tar.gz scummvm-rg350-fe7d2026b1aae2915fea7de0426eca7f1e1d5af8.tar.bz2 scummvm-rg350-fe7d2026b1aae2915fea7de0426eca7f1e1d5af8.zip |
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
-rw-r--r-- | engines/sci/graphics/paint16.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |