diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2008-04-11 23:57:58 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-10 01:15:34 +0100 |
commit | 04471a1d4a9575a81016de0375c2000d793a044d (patch) | |
tree | 2b5642df5a6a69a063e40ea5f1389defb7c0a2e1 /src/gui/radiobutton.cpp | |
parent | cb5ca882c9f26431d1d2974bc40347adda2c9f6b (diff) | |
download | mana-04471a1d4a9575a81016de0375c2000d793a044d.tar.gz mana-04471a1d4a9575a81016de0375c2000d793a044d.tar.bz2 mana-04471a1d4a9575a81016de0375c2000d793a044d.tar.xz mana-04471a1d4a9575a81016de0375c2000d793a044d.zip |
Removed the rhombs around the radio buttons.
(cherry picked from commit 2fd5b9e2fea5f95f54e543011e2e8fb70f0b037f)
Diffstat (limited to 'src/gui/radiobutton.cpp')
-rw-r--r-- | src/gui/radiobutton.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/radiobutton.cpp b/src/gui/radiobutton.cpp index 5f929e62..619ec84f 100644 --- a/src/gui/radiobutton.cpp +++ b/src/gui/radiobutton.cpp @@ -81,3 +81,22 @@ void RadioButton::drawBox(gcn::Graphics* graphics) static_cast<Graphics*>(graphics)->drawImage(box, 2, 2); } } + +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); +} |