aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeNew.cpp5
-rw-r--r--gui/about.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 56b0fc9ea9..cac81ad260 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -300,11 +300,10 @@ void ThemeNew::drawDialogBackground(const Common::Rect &r, uint16 hints, kState
void ThemeNew::drawText(const Common::Rect &r, const Common::String &str, kState state, kTextAlign align, bool inverted, int deltax, bool useEllipsis) {
if (!_initOk)
return;
- // FIXME:since the 'height' of the font seems not to be correct we just add 4 to it right now
- // that should fix redraw bugs with the about dialog
- Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight()+4);
+ Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight());
restoreBackground(r2);
+ r2.bottom += 4;
if (inverted) {
_screen.fillRect(r, _colors[kTextInvertedBackground]);
diff --git a/gui/about.cpp b/gui/about.cpp
index 0043bd8518..fe1ea6afa8 100644
--- a/gui/about.cpp
+++ b/gui/about.cpp
@@ -249,7 +249,7 @@ void AboutDialog::drawDialog() {
while (*str && *str == ' ')
str++;
- g_gui.theme()->drawText(Common::Rect(_x + xOff, y, _x + _w - xOff, y + g_gui.theme()->getFontHeight() + 4), str, state, align, false, 0, false);
+ g_gui.theme()->drawText(Common::Rect(_x + xOff, y, _x + _w - xOff, y + g_gui.theme()->getFontHeight()), str, state, align, false, 0, false);
y += _lineHeight;
}
g_gui.theme()->resetDrawArea();