SCI: reset cursor state when kDrawControl gets called on textedit controls, fixes cursor placement issues

svn-id: r48794
This commit is contained in:
Martin Kiewitz
2010-04-25 15:20:52 +00:00
parent 731a9eda68
commit 482e89ea9f
+1
View File
@@ -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);