SCI/newgui: textedit control also changed to draw text like sierra sci

svn-id: r45289
This commit is contained in:
Martin Kiewitz 2009-10-20 20:12:50 +00:00
parent d7ce8440ba
commit 9e864ff95b
2 changed files with 0 additions and 3 deletions

View File

@ -360,7 +360,6 @@ void SciGui::drawControlTextEdit(Common::Rect rect, reg_t obj, const char *text,
Common::Rect textRect = rect;
uint16 oldFontId = _gfx->GetFontId();
textRect.translate(0, 1);
rect.grow(1);
_gfx->TexteditCursorErase();
_gfx->EraseRect(rect);

View File

@ -894,13 +894,11 @@ void SciGuiGfx::TexteditChange(reg_t controlObject, reg_t eventObject) {
Common::Rect rect;
rect = Common::Rect(GET_SEL32V(segMan, controlObject, nsLeft), GET_SEL32V(segMan, controlObject, nsTop),
GET_SEL32V(segMan, controlObject, nsRight), GET_SEL32V(segMan, controlObject, nsBottom));
rect.top++;
TexteditCursorErase();
EraseRect(rect);
TextBox(text.c_str(), 0, rect, SCI_TEXT_ALIGNMENT_LEFT, fontId);
BitsShow(rect);
SetFont(fontId);
rect.top--;
TexteditCursorDraw(rect, text.c_str(), cursorPos);
SetFont(oldFontId);
// Write back string