BACKENDS: Explicitly use ellipsis for the virtual keybord if needed
This is the default, so this commit does not change the behaviour. But this will allow to change the default at a later stage.
This commit is contained in:
parent
ec06d940a2
commit
4fa0f7c9ba
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ void VirtualKeyboardGUI::updateDisplay() {
|
||||||
|
|
||||||
// draw to display surface
|
// draw to display surface
|
||||||
_dispSurface.fillRect(Rect(_dispSurface.w, _dispSurface.h), _dispBackColor);
|
_dispSurface.fillRect(Rect(_dispSurface.w, _dispSurface.h), _dispBackColor);
|
||||||
_dispFont->drawString(&_dispSurface, dispText, 0, 0, _dispSurface.w, _dispForeColor);
|
_dispFont->drawString(&_dispSurface, dispText, 0, 0, _dispSurface.w, _dispForeColor, Graphics::kTextAlignLeft, 0, true);
|
||||||
|
|
||||||
String beforeCaret(wholeText.c_str() + _dispI, wholeText.c_str() + cursorPos);
|
String beforeCaret(wholeText.c_str() + _dispI, wholeText.c_str() + cursorPos);
|
||||||
_caretX = _dispFont->getStringWidth(beforeCaret);
|
_caretX = _dispFont->getStringWidth(beforeCaret);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue