From 11fed0a893f0875ed4c643215db738b491aa170e Mon Sep 17 00:00:00 2001 From: knolax <1339802534.kk@gmail.com> Date: Tue, 7 Mar 2017 12:06:19 -0500 Subject: fixed blending of draw --- gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui.cpp') 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) { -- cgit v1.1