mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r26009) -Fix: warning about conditional expression with enumeral with non-enumeral type
This commit is contained in:
parent
b934e528d9
commit
3b9f92e14c
@ -852,7 +852,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||||||
case WM_KEYDOWN: {
|
case WM_KEYDOWN: {
|
||||||
/* No matter the keyboard layout, we will map the '~' to the console. */
|
/* No matter the keyboard layout, we will map the '~' to the console. */
|
||||||
uint scancode = GB(lParam, 16, 8);
|
uint scancode = GB(lParam, 16, 8);
|
||||||
keycode = scancode == 41 ? WKC_BACKQUOTE : MapWindowsKey(wParam);
|
keycode = scancode == 41 ? (uint)WKC_BACKQUOTE : MapWindowsKey(wParam);
|
||||||
|
|
||||||
/* Silently drop all messages handled by WM_CHAR. */
|
/* Silently drop all messages handled by WM_CHAR. */
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
Loading…
Reference in New Issue
Block a user