aboutsummaryrefslogtreecommitdiff
path: root/nuklear/demo/gdi/nuklear_gdi.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-03 14:02:32 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-12-03 14:02:32 +0100
commit56f4e2da77caaadd4b12e3870d737c41e4d22bca (patch)
tree0a5ac8f4e33daed6e896817dc9267fbd45e7f733 /nuklear/demo/gdi/nuklear_gdi.h
parentdfdeabc62c0b9417b2552060ae0297653c07a8e4 (diff)
parenta16877b5b8b739cb8d43a0a32009265cdd3d4709 (diff)
downloadsherlock.lv2-56f4e2da77caaadd4b12e3870d737c41e4d22bca.tar.xz
Merge commit 'a16877b5b8b739cb8d43a0a32009265cdd3d4709'
Diffstat (limited to 'nuklear/demo/gdi/nuklear_gdi.h')
-rw-r--r--nuklear/demo/gdi/nuklear_gdi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuklear/demo/gdi/nuklear_gdi.h b/nuklear/demo/gdi/nuklear_gdi.h
index e2792e4..6d3a84a 100644
--- a/nuklear/demo/gdi/nuklear_gdi.h
+++ b/nuklear/demo/gdi/nuklear_gdi.h
@@ -516,7 +516,7 @@ nk_gdi_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
{
- int down = (lparam >> 31) & 1;
+ int down = !((lparam >> 31) & 1);
int ctrl = GetKeyState(VK_CONTROL) & (1 << 15);
switch (wparam)