diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 707c8af7c59..f93901b5fea 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -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); diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index bb832b288fc..7e5e6147e75 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -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