summaryrefslogtreecommitdiff
path: root/src/video/win32_v.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/win32_v.cpp')
-rw-r--r--src/video/win32_v.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 814fdc4b9..7a6e8a866 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -447,7 +447,7 @@ static LRESULT HandleCharMsg(uint keycode, uint charcode)
charcode = len == 1 ? w : 0;
#endif /* UNICODE */
- HandleKeypress(GB(charcode, 0, 16) | (keycode << 16));
+ HandleKeypress(keycode, charcode);
return 0;
}
@@ -637,7 +637,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
/* No character translation? */
if (charcode == 0) {
- HandleKeypress(0 | (keycode << 16));
+ HandleKeypress(keycode, 0);
return 0;
}
@@ -669,11 +669,11 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return 0; // do nothing
case VK_F10: // F10, ignore activation of menu
- HandleKeypress(MapWindowsKey(wParam) << 16);
+ HandleKeypress(MapWindowsKey(wParam), 0);
return 0;
default: // ALT in combination with something else
- HandleKeypress(MapWindowsKey(wParam) << 16);
+ HandleKeypress(MapWindowsKey(wParam), 0);
break;
}
break;