[Scummvm-cvs-logs] SF.net SVN: scummvm:[44926] scummvm/trunk/engines/sci/gui32/gui32.cpp

joostp at users.sourceforge.net joostp at users.sourceforge.net
Sun Oct 11 16:30:55 CEST 2009


Revision: 44926
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44926&view=rev
Author:   joostp
Date:     2009-10-11 14:30:55 +0000 (Sun, 11 Oct 2009)

Log Message:
-----------
rename shadow var

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui32/gui32.cpp

Modified: scummvm/trunk/engines/sci/gui32/gui32.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui32/gui32.cpp	2009-10-11 14:28:20 UTC (rev 44925)
+++ scummvm/trunk/engines/sci/gui32/gui32.cpp	2009-10-11 14:30:55 UTC (rev 44926)
@@ -615,10 +615,10 @@
 
 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));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list