aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-11-03 01:14:40 +0000
committerMax Horn2003-11-03 01:14:40 +0000
commit7724d9a340c8a0641b77526f487cad732f19bbbc (patch)
tree5dc392003e163f82f9b49291649a28d68759778c
parent4581cdfe6cc32f302006d66a69824912cdca59ea (diff)
downloadscummvm-rg350-7724d9a340c8a0641b77526f487cad732f19bbbc.tar.gz
scummvm-rg350-7724d9a340c8a0641b77526f487cad732f19bbbc.tar.bz2
scummvm-rg350-7724d9a340c8a0641b77526f487cad732f19bbbc.zip
distinguish selected tab by size, too (not just by color)
svn-id: r11079
-rw-r--r--gui/TabWidget.cpp7
-rw-r--r--gui/newgui.cpp2
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;