diff options
author | md5 | 2011-02-14 18:16:35 +0200 |
---|---|---|
committer | md5 | 2011-02-14 18:16:35 +0200 |
commit | 0da6b15539c4dbb1371cd18ae77b90688ef3f764 (patch) | |
tree | 29f3c447905c63291e496b56e05854450a5f8391 /engines | |
parent | e0430e6e9e3c08167d48df9540f61843c3faac80 (diff) | |
download | scummvm-rg350-0da6b15539c4dbb1371cd18ae77b90688ef3f764.tar.gz scummvm-rg350-0da6b15539c4dbb1371cd18ae77b90688ef3f764.tar.bz2 scummvm-rg350-0da6b15539c4dbb1371cd18ae77b90688ef3f764.zip |
SCI2+: Point out that there is a hack in the text splitting code
This particular hack causes issues in GK1, when talking with Grace, because the
width of the associated plane isn't set correctly.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp index 5b690f289a..026a2ff405 100644 --- a/engines/sci/graphics/frameout.cpp +++ b/engines/sci/graphics/frameout.cpp @@ -584,6 +584,11 @@ void GfxFrameout::kernelFrameout() { uint16 startX = itemEntry->x + it->planeRect.left; uint16 curY = itemEntry->y + it->planeRect.top; const char *txt = text.c_str(); + // HACK. The plane sometimes doesn't contain the correct width. This + // hack breaks the dialog options when speaking with Grace, but it's + // the best we got up to now. + // TODO: Remove this, and figure out why the plane in question isn't + // initialized correctly (its width is 0). uint16 w = it->planeRect.width() >= 20 ? it->planeRect.width() : _screen->getWidth() - 10; int16 charCount; |