mirror of https://github.com/stella-emu/stella.git
make editable text display from the beginning by default
This commit is contained in:
parent
5f59d10c51
commit
c2f9c070b7
|
@ -55,11 +55,7 @@ void EditableWidget::setText(const string& str, bool)
|
|||
if(_filter(tolower(c)))
|
||||
_editString.push_back(c);
|
||||
|
||||
_caretPos = int(_editString.size());
|
||||
|
||||
_editScrollOffset = (_font.getStringWidth(_editString) - (getEditRect().width()));
|
||||
if (_editScrollOffset < 0)
|
||||
_editScrollOffset = 0;
|
||||
_caretPos = _editScrollOffset = 0;
|
||||
|
||||
setDirty();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue