summaryrefslogtreecommitdiff
path: root/src/gui/button.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-17 23:21:20 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-17 23:21:20 +0000
commit11e9c220d8b989d9ee9abb27c8d0acc41fe3d7f4 (patch)
tree304bebd799fcb1052f1b452e8f9da255cd718242 /src/gui/button.cpp
parentbc4c1e72374a44595e8b1ea0cd16e182139b2cb7 (diff)
downloadmana-11e9c220d8b989d9ee9abb27c8d0acc41fe3d7f4.tar.gz
mana-11e9c220d8b989d9ee9abb27c8d0acc41fe3d7f4.tar.bz2
mana-11e9c220d8b989d9ee9abb27c8d0acc41fe3d7f4.tar.xz
mana-11e9c220d8b989d9ee9abb27c8d0acc41fe3d7f4.zip
Made some fixes to the window widget and made server selection use it too.
WARNING: From now on we need Guichan 0.2.0, the 0.1.0 version will NOT work!
Diffstat (limited to 'src/gui/button.cpp')
-rw-r--r--src/gui/button.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index 02a77984..030dd9de 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -26,6 +26,7 @@ Button::Button(const std::string& caption):
{
mouseDown = false;
keyDown = false;
+ setBorderSize(0);
}
void Button::draw(gcn::Graphics* graphics) {
@@ -35,6 +36,8 @@ void Button::draw(gcn::Graphics* graphics) {
getAbsolutePosition(x, y);
+ //printf("draw - %d,%d\n", x, y);
+
if (false /*disabled*/) {
mode = 3;
}