diff options
author | John Willis | 2009-06-06 20:05:21 +0000 |
---|---|---|
committer | John Willis | 2009-06-06 20:05:21 +0000 |
commit | d89fbd5b7568203c9634e93994bd28120d4adcc8 (patch) | |
tree | d7697de0cc7316941ad3d538676fa6077a20f852 /backends | |
parent | 0989bb0b9087e74662f546d13b2f16544cfba20b (diff) | |
download | scummvm-rg350-d89fbd5b7568203c9634e93994bd28120d4adcc8.tar.gz scummvm-rg350-d89fbd5b7568203c9634e93994bd28120d4adcc8.tar.bz2 scummvm-rg350-d89fbd5b7568203c9634e93994bd28120d4adcc8.zip |
Virtual Keyboard: 'Ab'use the console font to get a font small enough to be usable on 320*240 virtual keyboards for display_area (GUI and BigGUI take up far too much space).
svn-id: r41300
Diffstat (limited to 'backends')
-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; |