aboutsummaryrefslogtreecommitdiff
path: root/demo/d3d11/nuklear_d3d11.h
diff options
context:
space:
mode:
Diffstat (limited to 'demo/d3d11/nuklear_d3d11.h')
-rw-r--r--demo/d3d11/nuklear_d3d11.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/d3d11/nuklear_d3d11.h b/demo/d3d11/nuklear_d3d11.h
index 717686c..efddf0d 100644
--- a/demo/d3d11/nuklear_d3d11.h
+++ b/demo/d3d11/nuklear_d3d11.h
@@ -205,7 +205,7 @@ nk_d3d11_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
{
- int down = (lparam >> 31) & 1 ? 0 : 1;
+ int down = !((lparam >> 31) & 1);
int ctrl = GetKeyState(VK_CONTROL) & (1 << 15);
switch (wparam)