diff options
author | Martin Kiewitz | 2010-04-25 15:20:52 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-04-25 15:20:52 +0000 |
commit | 482e89ea9f5f3b9ada2d1efa7feafdf22c7176dc (patch) | |
tree | 7c261b18ba55a06b1648f5a84c1867c2ea5ea75f | |
parent | 731a9eda68e973693df3e4b290ca4cd2f8a74db8 (diff) | |
download | scummvm-rg350-482e89ea9f5f3b9ada2d1efa7feafdf22c7176dc.tar.gz scummvm-rg350-482e89ea9f5f3b9ada2d1efa7feafdf22c7176dc.tar.bz2 scummvm-rg350-482e89ea9f5f3b9ada2d1efa7feafdf22c7176dc.zip |
SCI: reset cursor state when kDrawControl gets called on textedit controls, fixes cursor placement issues
svn-id: r48794
-rw-r--r-- | engines/sci/graphics/controls.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/graphics/controls.cpp b/engines/sci/graphics/controls.cpp index b1392cea11..6f133815a5 100644 --- a/engines/sci/graphics/controls.cpp +++ b/engines/sci/graphics/controls.cpp @@ -283,6 +283,7 @@ void GfxControls::kernelDrawTextEdit(Common::Rect rect, reg_t obj, const char *t uint16 oldFontId = _text16->GetFontId(); rect.grow(1); + _texteditCursorVisible = false; texteditCursorErase(); _paint16->eraseRect(rect); _text16->Box(text, 0, textRect, SCI_TEXT16_ALIGNMENT_LEFT, fontId); |