mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SCI: reset cursor state when kDrawControl gets called on textedit controls, fixes cursor placement issues
svn-id: r48794
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user