diff options
Diffstat (limited to 'backends/vkeybd/virtual-keyboard-gui.cpp')
-rw-r--r-- | backends/vkeybd/virtual-keyboard-gui.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/vkeybd/virtual-keyboard-gui.cpp b/backends/vkeybd/virtual-keyboard-gui.cpp index 54b9b3d43d..e1c076ad24 100644 --- a/backends/vkeybd/virtual-keyboard-gui.cpp +++ b/backends/vkeybd/virtual-keyboard-gui.cpp @@ -117,8 +117,12 @@ void VirtualKeyboardGUI::setupDisplayArea(Rect& r, OverlayColor forecolor) { if (!fontIsSuitable(_dispFont, r)) { _dispFont = FontMan.getFontByUsage(Graphics::FontManager::kGUIFont); if (!fontIsSuitable(_dispFont, r)) { - _displayEnabled = false; - return; + /* FIXME: We 'ab'use the kConsoleFont to get a font that fits in a small display_area on 320*240 keyboard images */ + _dispFont = FontMan.getFontByUsage(Graphics::FontManager::kConsoleFont); + if (!fontIsSuitable(_dispFont, r)) { + _displayEnabled = false; + return; + } } } _dispX = _kbdBound.left + r.left; |