summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/button.cpp
diff options
context:
space:
mode:
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();