mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
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
@ -441,7 +441,7 @@ void VirtualKeyboardGUI::updateDisplay() {
|
||||
|
||||
// draw to display surface
|
||||
_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);
|
||||
_caretX = _dispFont->getStringWidth(beforeCaret);
|
||||
|
Loading…
Reference in New Issue
Block a user