diff options
author | Martin Kiewitz | 2009-10-14 10:11:03 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-14 10:11:03 +0000 |
commit | caaac0130aa79b7145d5608f8dff5b3fe422704a (patch) | |
tree | dd55c4bf590098cf72ced1cabd3815c54efc855d | |
parent | ec25df8e2356fad682d84fa1eb4b1e5e6815ae25 (diff) | |
download | scummvm-rg350-caaac0130aa79b7145d5608f8dff5b3fe422704a.tar.gz scummvm-rg350-caaac0130aa79b7145d5608f8dff5b3fe422704a.tar.bz2 scummvm-rg350-caaac0130aa79b7145d5608f8dff5b3fe422704a.zip |
SCI: kDrawControl now also fixes bad rects (fixes jones/vga)
svn-id: r45064
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 97998145e9..560c125030 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -674,7 +674,8 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) { const char **listEntries = NULL; bool isAlias = false; - rect = Common::Rect (x, y, (int16)GET_SEL32V(controlObject, nsRight), (int16)GET_SEL32V(controlObject, nsBottom)); + kGraphCreateRect(x, y, GET_SEL32V(controlObject, nsRight), GET_SEL32V(controlObject, nsBottom), &rect); + if (!textReference.isNull()) text = segMan->getString(textReference); |