summaryrefslogtreecommitdiff
path: root/src/gui/checkbox.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-18 01:53:10 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-18 01:53:10 +0000
commit8fb163024e321e00e55ff324ccdac34b9adfb773 (patch)
tree5b461cee991aaff633a6ae11f1d16a280952ebbb /src/gui/checkbox.cpp
parent73e815469fd2332d424852afe6153243b5d12043 (diff)
downloadmana-8fb163024e321e00e55ff324ccdac34b9adfb773.tar.gz
mana-8fb163024e321e00e55ff324ccdac34b9adfb773.tar.bz2
mana-8fb163024e321e00e55ff324ccdac34b9adfb773.tar.xz
mana-8fb163024e321e00e55ff324ccdac34b9adfb773.zip
Added colon to the fixed font and removed some alfont usage.
Diffstat (limited to 'src/gui/checkbox.cpp')
-rw-r--r--src/gui/checkbox.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp
index 9105ae69..d30298ea 100644
--- a/src/gui/checkbox.cpp
+++ b/src/gui/checkbox.cpp
@@ -26,11 +26,9 @@ CheckBox::CheckBox(const std::string& caption, bool marked):
{
}
-void CheckBox::draw(gcn::Graphics* graphics) {
+void CheckBox::drawBox(gcn::Graphics* graphics) {
BITMAP *box = NULL;
int x, y;
- int tx, ty;
- int col = 0;
getAbsolutePosition(x, y);
@@ -46,20 +44,8 @@ void CheckBox::draw(gcn::Graphics* graphics) {
box = gui_skin.checkbox.normal;
}
- if (false /*disabled*/) {
- col = gui_skin.checkbox.textcolor[1];
- } else {
- col = gui_skin.checkbox.textcolor[0];
- }
-
x += 2;
y += 2;
- tx = x + box->w + 2;
- ty = y - 2;
masked_blit(box, gui_bitmap, 0, 0, x, y, box->w, box->h);
-
- int rtm = alfont_text_mode(-1);
- gui_text(gui_bitmap, getCaption().c_str(), tx, ty, col, 0);
- alfont_text_mode(rtm);
}