aboutsummaryrefslogtreecommitdiff
path: root/gui/about.cpp
diff options
context:
space:
mode:
authorNarek Mailian2013-06-13 12:32:36 +0000
committerNarek Mailian2013-08-16 20:54:08 +0200
commit887a99e211c25fd16e4cf3b7505ae17678c2f997 (patch)
treeabb8a48758d30bab824e9794feb193a7d83609cf /gui/about.cpp
parent1d21f5db264b98c53ef1475bdf0f2ffbe01c2e79 (diff)
downloadscummvm-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.cpp7
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;
}
}