Ticket #9154: editalbe.cpp.patch
File editalbe.cpp.patch, 719 bytes (added by , 15 years ago) |
---|
-
editable.cpp
249 249 250 250 g_gui.theme()->drawCaret(Common::Rect(x, y, x + 1, y + editRect.height() - 2), erase); 251 251 252 if (erase) { 253 if ((unsigned int)_caretPos < _editString.size()) { 254 GUI::EditableWidget::String chr = (GUI::EditableWidget::String)_editString[_caretPos]; 255 int chr_w = g_gui.getCharWidth(_editString[_caretPos], _font); 256 g_gui.theme()->drawText(Common::Rect(x, y, x + chr_w, y + editRect.height() - 2), chr, _state, Graphics::kTextAlignLeft, ThemeEngine::kTextInversionNone, 0, false, _font); 257 } 258 } 259 252 260 _caretVisible = !erase; 253 261 } 254 262