summaryrefslogtreecommitdiffstats
path: root/uisimulator/win32/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/button.c')
-rw-r--r--uisimulator/win32/button.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/win32/button.c b/uisimulator/win32/button.c
index dce055e613..d1a86f191a 100644
--- a/uisimulator/win32/button.c
+++ b/uisimulator/win32/button.c
@@ -143,7 +143,7 @@ void button_event(int key, bool pressed)
if (pressed)
btn |= new_btn;
else
- btn &= !new_btn;
+ btn &= ~new_btn;
/* Lots of stuff copied from real button.c. Not good, I think... */