summaryrefslogtreecommitdiff
path: root/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui.cpp')
-rw-r--r--gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui.cpp b/gui.cpp
index 30889b9..82feb94 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -63,8 +63,9 @@ int butt::press(int x, int y) {
int c = boxes.check(x, y);
if (c != -1) {
states[c] = states[c] ^ TOGGLE;
+ return 0;
}
- return 0;
+ return -1;
}
//doesn't do anything for now because just press will do the trick
int butt::unpress(int index) {