mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
Oops. More advanced warning recovered a mechanic mistake. Fixing.
svn-id: r22671
This commit is contained in:
parent
b56c7b88d7
commit
9943084227
@ -56,7 +56,7 @@ void EditableWidget::setEditString(const String &str) {
|
||||
_editString = str;
|
||||
_caretPos = _editString.size();
|
||||
|
||||
_editScrollOffset = (g_gui.getStringWidth(_editString) - (getEditRect().width()), _font);
|
||||
_editScrollOffset = g_gui.getStringWidth(_editString, _font) - getEditRect().width();
|
||||
if (_editScrollOffset < 0)
|
||||
_editScrollOffset = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user