diff options
-rw-r--r-- | gui/TabWidget.cpp | 7 | ||||
-rw-r--r-- | gui/newgui.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gui/TabWidget.cpp b/gui/TabWidget.cpp index a6e4d33573..ca18016d96 100644 --- a/gui/TabWidget.cpp +++ b/gui/TabWidget.cpp @@ -25,7 +25,7 @@ #include "gui/newgui.h" enum { - kTabHeight = 14, + kTabHeight = 15, kTabLeftOffset = 4, kTabSpacing = 2, @@ -115,8 +115,9 @@ void TabWidget::drawWidget(bool hilite) { int i, x = _x + kTabLeftOffset; for (i = 0; i < _tabs.size(); ++i) { NewGuiColor color = (i == _activeTab) ? gui->_color : gui->_shadowcolor; - gui->box(x, _y, _tabWidth, kTabHeight, color, color); - gui->drawString(_tabs[i].title, x + kTabPadding, _y + 4, _tabWidth - 2 * kTabPadding, gui->_textcolor, kTextAlignCenter); + int yOffset = (i == _activeTab) ? 0 : 2; + gui->box(x, _y + yOffset, _tabWidth, kTabHeight - yOffset, color, color); + gui->drawString(_tabs[i].title, x + kTabPadding, _y + yOffset/2 + 4, _tabWidth - 2 * kTabPadding, gui->_textcolor, kTextAlignCenter); x += _tabWidth + kTabSpacing; } diff --git a/gui/newgui.cpp b/gui/newgui.cpp index c46b3664f8..7de81dada7 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -324,7 +324,7 @@ void NewGui::line(int x, int y, int x2, int y2, NewGuiColor color) { void NewGui::blendRect(int x, int y, int w, int h, NewGuiColor color, int level) { #ifdef NEWGUI_256 - fillRect(x,y,w,h,color); + fillRect(x, y, w, h, color); #else int r, g, b; uint8 ar, ag, ab; |