diff options
author | Max Horn | 2009-12-15 08:19:59 +0000 |
---|---|---|
committer | Max Horn | 2009-12-15 08:19:59 +0000 |
commit | 6c98169dc3ab302a6fa1feecc6b053b515174e7d (patch) | |
tree | dbedc98371c95b34f781ec7eda115764264d0bb7 /gui | |
parent | 605037342be6c8dc40bd9c1380fd93727f3d3de3 (diff) | |
download | scummvm-rg350-6c98169dc3ab302a6fa1feecc6b053b515174e7d.tar.gz scummvm-rg350-6c98169dc3ab302a6fa1feecc6b053b515174e7d.tar.bz2 scummvm-rg350-6c98169dc3ab302a6fa1feecc6b053b515174e7d.zip |
GUI: Shorten button labels if too long, and improve the shortening logic
svn-id: r46381
Diffstat (limited to 'gui')
-rw-r--r-- | gui/ThemeEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 6d477fb4b3..a08e019668 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -850,7 +850,7 @@ void ThemeEngine::drawButton(const Common::Rect &r, const Common::String &str, W dd = kDDButtonDisabled; queueDD(dd, r, 0, hints & WIDGET_CLEARBG); - queueDDText(getTextData(dd), getTextColor(dd), r, str, false, false, _widgets[dd]->_textAlignH, _widgets[dd]->_textAlignV); + queueDDText(getTextData(dd), getTextColor(dd), r, str, false, true, _widgets[dd]->_textAlignH, _widgets[dd]->_textAlignV); } void ThemeEngine::drawLineSeparator(const Common::Rect &r, WidgetStateInfo state) { |