mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-19 22:31:15 +00:00
Replace magic mask in WNDPROC with macro's
This commit is contained in:
parent
aedef9680f
commit
57c5aebe3e
@ -390,7 +390,7 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
switch (uMsg) {
|
switch (uMsg) {
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
if (lParam & 0x40000000) {
|
if (HIWORD(lParam) & KF_REPEAT) {
|
||||||
return DefWindowProcA(hWnd, WM_KEYDOWN, wParam, lParam);
|
return DefWindowProcA(hWnd, WM_KEYDOWN, wParam, lParam);
|
||||||
}
|
}
|
||||||
keyCode = wParam;
|
keyCode = wParam;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user