summaryrefslogtreecommitdiffstats
path: root/uisimulator/win32
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-24 09:19:45 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-24 09:19:45 +0000
commitbd2bfe9993375d90b5cf040aae7987591a0012b8 (patch)
treeb5829433b190f61c5bc511b7aaaee075089b2e76 /uisimulator/win32
parent7bc6898e53cd87f3808beadca332a0ce3725f417 (diff)
downloadrockbox-bd2bfe9993375d90b5cf040aae7987591a0012b8.tar.gz
rockbox-bd2bfe9993375d90b5cf040aae7987591a0012b8.tar.bz2
rockbox-bd2bfe9993375d90b5cf040aae7987591a0012b8.zip
Fix bug #1174245: Win32 simulator didn't keep track of pressed keys properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6852 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-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... */