diff options
author | Narek Mailian | 2013-06-13 12:32:36 +0000 |
---|---|---|
committer | Narek Mailian | 2013-08-16 20:54:08 +0200 |
commit | 887a99e211c25fd16e4cf3b7505ae17678c2f997 (patch) | |
tree | abb8a48758d30bab824e9794feb193a7d83609cf /gui/about.cpp | |
parent | 1d21f5db264b98c53ef1475bdf0f2ffbe01c2e79 (diff) | |
download | scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.tar.gz scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.tar.bz2 scummvm-rg350-887a99e211c25fd16e4cf3b7505ae17678c2f997.zip |
GRAPHICS: Added changes and improved code from inisider/scummvm (partial text)
Includes code from https://github.com/inisider/scummvm/ , which has been
squashed and bugfixed
Diffstat (limited to 'gui/about.cpp')
-rw-r--r-- | gui/about.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/about.cpp b/gui/about.cpp index 20145886c6..3bb1934e28 100644 --- a/gui/about.cpp +++ b/gui/about.cpp @@ -180,9 +180,10 @@ void AboutDialog::close() { } void AboutDialog::drawDialog() { -// g_gui.theme()->setDrawArea(Common::Rect(_x, _y, _x+_w, _y+_h)); Dialog::drawDialog(); + setTextDrawableArea(Common::Rect(_x, _y, _x + _w, _y + _h)); + // Draw text // TODO: Add a "fade" effect for the top/bottom text lines // TODO: Maybe prerender all of the text into another surface, @@ -239,8 +240,8 @@ void AboutDialog::drawDialog() { while (*str && *str == ' ') str++; - if (*str && y > _y && y + g_gui.theme()->getFontHeight() < _y + _h) - g_gui.theme()->drawText(Common::Rect(_x + _xOff, y, _x + _w - _xOff, y + g_gui.theme()->getFontHeight()), str, state, align, ThemeEngine::kTextInversionNone, 0, false); + if (*str) + g_gui.theme()->drawText(Common::Rect(_x + _xOff, y, _x + _w - _xOff, y + g_gui.theme()->getFontHeight()), str, state, align, ThemeEngine::kTextInversionNone, 0, false, ThemeEngine::kFontStyleBold, ThemeEngine::kFontColorNormal, true, _textDrawableArea); y += _lineHeight; } } |