[Scummvm-cvs-logs] SF.net SVN: scummvm: [25139] scummvm/trunk/gui/EditTextWidget.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Jan 21 09:43:29 CET 2007
Revision: 25139
http://scummvm.svn.sourceforge.net/scummvm/?rev=25139&view=rev
Author: eriktorbjorn
Date: 2007-01-21 00:43:28 -0800 (Sun, 21 Jan 2007)
Log Message:
-----------
When a user clicks on an editable string, use the correct font for calculating
the width. Should fix bug #1640622.
Modified Paths:
--------------
scummvm/trunk/gui/EditTextWidget.cpp
Modified: scummvm/trunk/gui/EditTextWidget.cpp
===================================================================
--- scummvm/trunk/gui/EditTextWidget.cpp 2007-01-21 00:29:03 UTC (rev 25138)
+++ scummvm/trunk/gui/EditTextWidget.cpp 2007-01-21 08:43:28 UTC (rev 25139)
@@ -70,7 +70,7 @@
uint i;
for (i = 0; i < _editString.size(); ++i) {
- width += g_gui.getCharWidth(_editString[i]);
+ width += g_gui.theme()->getCharWidth(_editString[i], _font);
if (width >= x)
break;
}
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