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