aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-02-24 19:38:16 +0000
committerTorbjörn Andersson2006-02-24 19:38:16 +0000
commit66b5b7b3f375c516dbd7629528596b1ac2ae8f38 (patch)
tree60e931c1f081a8dd35209c532bf98a415798fdee /gui
parent0c91e91b44eaa82902b76522ed8a1340e89cbefe (diff)
downloadscummvm-rg350-66b5b7b3f375c516dbd7629528596b1ac2ae8f38.tar.gz
scummvm-rg350-66b5b7b3f375c516dbd7629528596b1ac2ae8f38.tar.bz2
scummvm-rg350-66b5b7b3f375c516dbd7629528596b1ac2ae8f38.zip
Cleanup.
svn-id: r20841
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeNew.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 62c8feafb0..2cc9aa3ac3 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -401,19 +401,19 @@ void ThemeNew::drawText(const Common::Rect &r, const Common::String &str, kState
if (!_initOk)
return;
Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight());
+ uint32 color;
restoreBackground(r2);
r2.bottom += 4;
if (inverted) {
_screen.fillRect(r, _colors[kTextInvertedBackground]);
- _font->drawString(&_screen, str, r.left, r.top, r.width(), _colors[kTextInvertedColor], convertAligment(align), deltax, useEllipsis);
- addDirtyRect(r2);
- return;
+ color = _colors[kTextInvertedColor];
} else {
- _font->drawString(&_screen, str, r.left, r.top, r.width(), getColor(state), convertAligment(align), deltax, useEllipsis);
+ color = getColor(state);
}
+ _font->drawString(&_screen, str, r.left, r.top, r.width(), color, convertAligment(align), deltax, useEllipsis);
addDirtyRect(r2);
}