summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 14:28:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 14:28:58 +0300
commit780c9da133b956785cb9c0d9c5e3e67f8209e15c (patch)
tree515fea9f3993a7480ef48c324f65c8f3303f261e /src/guichan/widgets/tabbedarea.cpp
parent2241f009d34a1c67a87723210e9d7cd6892f8646 (diff)
downloadplus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.gz
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.bz2
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.tar.xz
plus-780c9da133b956785cb9c0d9c5e3e67f8209e15c.zip
Remove some unused code from guichan.
Diffstat (limited to 'src/guichan/widgets/tabbedarea.cpp')
-rw-r--r--src/guichan/widgets/tabbedarea.cpp51
1 files changed, 1 insertions, 50 deletions
diff --git a/src/guichan/widgets/tabbedarea.cpp b/src/guichan/widgets/tabbedarea.cpp
index 141bbf96e..6f4c4a2b9 100644
--- a/src/guichan/widgets/tabbedarea.cpp
+++ b/src/guichan/widgets/tabbedarea.cpp
@@ -185,57 +185,8 @@ namespace gcn
return mOpaque;
}
- void TabbedArea::draw(Graphics *graphics)
+ void TabbedArea::draw(Graphics *graphics A_UNUSED)
{
- const Color &faceColor = getBaseColor();
- const int alpha = getBaseColor().a;
- Color highlightColor = faceColor + 0x303030;
- highlightColor.a = alpha;
- Color shadowColor = faceColor - 0x303030;
- shadowColor.a = alpha;
-
- // Draw a border.
- graphics->setColor(highlightColor);
- graphics->drawLine(0,
- mTabContainer->getHeight(),
- 0,
- getHeight() - 2);
- graphics->setColor(shadowColor);
- graphics->drawLine(getWidth() - 1,
- mTabContainer->getHeight() + 1,
- getWidth() - 1,
- getHeight() - 1);
- graphics->drawLine(1,
- getHeight() - 1,
- getWidth() - 1,
- getHeight() - 1);
-
- if (isOpaque())
- {
- graphics->setColor(getBaseColor());
- graphics->fillRectangle(Rectangle(1, 1,
- getWidth() - 2,
- getHeight() - 2));
- }
-
- // Draw a line underneath the tabs.
- graphics->setColor(highlightColor);
- graphics->drawLine(1, mTabContainer->getHeight(),
- getWidth() - 1, mTabContainer->getHeight());
-
- // If a tab is selected, remove the line right underneath
- // the selected tab.
- if (mSelectedTab)
- {
- graphics->setColor(getBaseColor());
- graphics->drawLine(mSelectedTab->getX() + 1,
- mTabContainer->getHeight(),
- mSelectedTab->getX() + mSelectedTab->getWidth() - 2,
- mTabContainer->getHeight());
-
- }
-
- drawChildren(graphics);
}
void TabbedArea::adjustSize()