summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/button.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-15 04:22:11 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-15 04:22:11 +0300
commitc91bc5201596eda73f9df2222d76d9f413426a85 (patch)
treecbdcf7fb76eee35baf7265e5c04da2f13633ab5d /src/guichan/widgets/button.cpp
parent255b1c29f47ef3b1e7a9b058c56ef72bfa10c5e3 (diff)
downloadmanaverse-c91bc5201596eda73f9df2222d76d9f413426a85.tar.gz
manaverse-c91bc5201596eda73f9df2222d76d9f413426a85.tar.bz2
manaverse-c91bc5201596eda73f9df2222d76d9f413426a85.tar.xz
manaverse-c91bc5201596eda73f9df2222d76d9f413426a85.zip
Remove some diplicated code from embeded guichan.
Diffstat (limited to 'src/guichan/widgets/button.cpp')
-rw-r--r--src/guichan/widgets/button.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/guichan/widgets/button.cpp b/src/guichan/widgets/button.cpp
index 184b6235c..c27d0c8dd 100644
--- a/src/guichan/widgets/button.cpp
+++ b/src/guichan/widgets/button.cpp
@@ -121,6 +121,7 @@ namespace gcn
return mSpacing;
}
+/*
void Button::draw(Graphics* graphics)
{
Color faceColor = getBaseColor();
@@ -195,6 +196,7 @@ namespace gcn
}
}
}
+*/
void Button::adjustSize()
{
@@ -233,23 +235,6 @@ namespace gcn
mHasMouse = true;
}
- void Button::mouseReleased(MouseEvent& mouseEvent)
- {
- if (mouseEvent.getButton() == MouseEvent::LEFT
- && mMousePressed
- && mHasMouse)
- {
- mMousePressed = false;
- distributeActionEvent();
- mouseEvent.consume();
- }
- else if (mouseEvent.getButton() == MouseEvent::LEFT)
- {
- mMousePressed = false;
- mouseEvent.consume();
- }
- }
-
void Button::mouseDragged(MouseEvent& mouseEvent)
{
mouseEvent.consume();