mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
rename shadow var
svn-id: r44926
This commit is contained in:
parent
efcfae742b
commit
117dfd08ec
@ -615,10 +615,10 @@ void SciGui32::drawControlText(Common::Rect rect, reg_t obj, const char *text, i
|
||||
|
||||
void SciGui32::drawControlTextEdit(Common::Rect rect, reg_t obj, const char *text, int16 fontId, int16 mode, int16 style, int16 cursorPos, int16 maxChars, bool hilite) {
|
||||
rect_t area = gfx_rect(rect.left, rect.top, rect.width(), rect.height());
|
||||
int16 textSize = strlen(text);
|
||||
int16 textLength = strlen(text);
|
||||
|
||||
if (cursorPos > textSize)
|
||||
cursorPos = textSize;
|
||||
if (cursorPos > textLength)
|
||||
cursorPos = textLength;
|
||||
|
||||
// update_cursor_limits(&s->save_dir_edit_offset, &cursor, max); FIXME: get rid of this?
|
||||
ADD_TO_CURRENT_PICTURE_PORT(sciw_new_edit_control(s->port, obj, area, text, fontId, (unsigned)cursorPos, (int8)hilite));
|
||||
|
Loading…
x
Reference in New Issue
Block a user