summaryrefslogtreecommitdiff
path: root/gui.cpp
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-03-07 12:06:19 -0500
committerknolax <1339802534.kk@gmail.com>2017-03-07 12:06:19 -0500
commit11fed0a893f0875ed4c643215db738b491aa170e (patch)
treec2099ef3be3e8d128a68cad20cd03af664637e93 /gui.cpp
parent8eb0808fecb8c57eff877fddf38db91b1f067921 (diff)
fixed blending of draw
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) {