diff options
author | Torbjörn Andersson | 2006-01-31 09:45:36 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-01-31 09:45:36 +0000 |
commit | 484fca65493305a69b2d4dbd6ad70fc3385f31bf (patch) | |
tree | abbd522633a7b3cf36b2a7f5acd2e048b953fd75 | |
parent | 74dd2e133d05d62ab184fbecf1692f8bb18fe5ec (diff) | |
download | scummvm-rg350-484fca65493305a69b2d4dbd6ad70fc3385f31bf.tar.gz scummvm-rg350-484fca65493305a69b2d4dbd6ad70fc3385f31bf.tar.bz2 scummvm-rg350-484fca65493305a69b2d4dbd6ad70fc3385f31bf.zip |
Tabs look better with dialog surfaces than with widget surfaces. There's
still room for improvements, though...
svn-id: r20330
-rw-r--r-- | gui/ThemeNew.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index e955ffc293..110b8ee91f 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -446,11 +446,11 @@ void ThemeNew::drawCheckbox(const Common::Rect &r, const Common::String &str, bo void ThemeNew::drawTab(const Common::Rect &r, const Common::String &str, bool active, kState state) { if (!_initOk) return; + drawRectMasked(r, surface(kDialogBkgdCorner), surface(kDialogBkgdTop), surface(kDialogBkgdLeft), surface(kDialogBkgd), + (state == kStateDisabled) ? 128 : 256, _colors[kTabBackgroundStart], _colors[kTabBackgroundEnd], 2); if (active) { _font->drawString(&_screen, str, r.left, r.top+2, r.width(), getColor(kStateHighlight), Graphics::kTextAlignCenter, 0, true); } else { - drawRectMasked(r, surface(kWidgetBkgdCorner), surface(kWidgetBkgdTop), surface(kWidgetBkgdLeft), surface(kWidgetBkgd), - (state == kStateDisabled) ? 128 : 256, _colors[kTabBackgroundStart], _colors[kTabBackgroundEnd], 2); _font->drawString(&_screen, str, r.left, r.top+2, r.width(), getColor(state), Graphics::kTextAlignCenter, 0, true); } addDirtyRect(r); |