diff options
author | Martin Kiewitz | 2009-10-20 20:12:50 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-20 20:12:50 +0000 |
commit | 9e864ff95b81e49317dde30635b16b3ef477e6b1 (patch) | |
tree | bd08716b39708d5ff9e88d954c6d1bf8efa37c2a /engines/sci/gui | |
parent | d7ce8440baf3a2b2d99fa9157102c4080836d9bd (diff) | |
download | scummvm-rg350-9e864ff95b81e49317dde30635b16b3ef477e6b1.tar.gz scummvm-rg350-9e864ff95b81e49317dde30635b16b3ef477e6b1.tar.bz2 scummvm-rg350-9e864ff95b81e49317dde30635b16b3ef477e6b1.zip |
SCI/newgui: textedit control also changed to draw text like sierra sci
svn-id: r45289
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui.cpp | 1 | ||||
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 707c8af7c5..f93901b5fe 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 bb832b288f..7e5e6147e7 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 |