diff options
author | Joost Peters | 2009-10-11 14:30:55 +0000 |
---|---|---|
committer | Joost Peters | 2009-10-11 14:30:55 +0000 |
commit | 117dfd08ecc41a6c7dc339ba21205e72fcb764fa (patch) | |
tree | 894040628ab81e779918502d4a57f40a2bec32c0 | |
parent | efcfae742b63ca01abca64cbbfa5aa71b2dae527 (diff) | |
download | scummvm-rg350-117dfd08ecc41a6c7dc339ba21205e72fcb764fa.tar.gz scummvm-rg350-117dfd08ecc41a6c7dc339ba21205e72fcb764fa.tar.bz2 scummvm-rg350-117dfd08ecc41a6c7dc339ba21205e72fcb764fa.zip |
rename shadow var
svn-id: r44926
-rw-r--r-- | engines/sci/gui32/gui32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gui32/gui32.cpp b/engines/sci/gui32/gui32.cpp index a39a73142a..9c7cb09229 100644 --- a/engines/sci/gui32/gui32.cpp +++ b/engines/sci/gui32/gui32.cpp @@ -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)); |