mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
SCI/newgui: textedit control also changed to draw text like sierra sci
svn-id: r45289
This commit is contained in:
parent
d7ce8440ba
commit
9e864ff95b
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user