summaryrefslogtreecommitdiff
path: root/src/gui/widgets/radiobutton.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-10 20:24:23 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-10 20:57:14 +0300
commitdba5ec4c1f249599a5f718fe4e532c66e917ffa9 (patch)
tree93f7147d25d8d99d15c579f4f3f58c961c120def /src/gui/widgets/radiobutton.cpp
parenta99352987c2a48012dccd6aeb6c6474b9fce1bdd (diff)
downloadplus-dba5ec4c1f249599a5f718fe4e532c66e917ffa9.tar.gz
plus-dba5ec4c1f249599a5f718fe4e532c66e917ffa9.tar.bz2
plus-dba5ec4c1f249599a5f718fe4e532c66e917ffa9.tar.xz
plus-dba5ec4c1f249599a5f718fe4e532c66e917ffa9.zip
Remove some push/pop clip areas.
Diffstat (limited to 'src/gui/widgets/radiobutton.cpp')
-rw-r--r--src/gui/widgets/radiobutton.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/widgets/radiobutton.cpp b/src/gui/widgets/radiobutton.cpp
index e641be323..feedeae7b 100644
--- a/src/gui/widgets/radiobutton.cpp
+++ b/src/gui/widgets/radiobutton.cpp
@@ -136,23 +136,16 @@ void RadioButton::drawBox(gcn::Graphics* graphics)
}
if (box)
- static_cast<Graphics*>(graphics)->drawImage(box, 2, 2);
+ static_cast<Graphics*>(graphics)->drawImage(box, 3, 3);
}
void RadioButton::draw(gcn::Graphics* graphics)
{
- graphics->pushClipArea(gcn::Rectangle(1, 1, getWidth() - 1,
- getHeight() - 1));
-
drawBox(graphics);
- graphics->popClipArea();
-
graphics->setFont(getFont());
graphics->setColor(getForegroundColor());
-// int h = getHeight() + getHeight() / 2;
-// graphics->drawText(getCaption(), h - 2, 0);
graphics->drawText(getCaption(), 16, 0);
}
@@ -165,4 +158,3 @@ void RadioButton::mouseExited(gcn::MouseEvent& event A_UNUSED)
{
mHasMouse = false;
}
-