summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-11 00:19:53 +0000
committerdarkvater <darkvater@openttd.org>2004-09-11 00:19:53 +0000
commit2cd8a89d441a92d96a144fd52b78167a67213b02 (patch)
treec613a075c2ef6fa5804ba1bb62bf87e9382984ac
parenta956b63b413e4f8b7a031c49dea95c2aa98537f0 (diff)
downloadopenttd-2cd8a89d441a92d96a144fd52b78167a67213b02.tar.xz
(svn r199) -Fix: [993374] Pressing alt locks the game - sort of a bug. I hope I didn't break anything :O
-rw-r--r--win32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win32.c b/win32.c
index dc1a6a509..129e81ae2 100644
--- a/win32.c
+++ b/win32.c
@@ -307,14 +307,14 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
break;
- case WM_SYSKEYDOWN:
+ case WM_SYSKEYDOWN: /* user presses F10 or Alt, both activating the title-menu */
switch(wParam) {
- case VK_RETURN:
+ case VK_RETURN: /* Full Screen */
MakeWindow(!_wnd.fullscreen);
return 0;
- default:
+ default: /* just ALT or ALT in combination with something else */
_pressed_key = MapWindowsKey(wParam) << 16;
- break;
+ return 0; // game doesn't have a title-bar, so just ignore that
}
break;
case WM_NCMOUSEMOVE: