summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-11 00:36:06 +0000
committerdarkvater <darkvater@openttd.org>2004-09-11 00:36:06 +0000
commitddeae85be4a0ef6e9e4fd49bd3e0aee0d76831d9 (patch)
tree89a7f7575bdbbc34565408e61a4d906fc26dced1 /win32.c
parent2cd8a89d441a92d96a144fd52b78167a67213b02 (diff)
downloadopenttd-ddeae85be4a0ef6e9e4fd49bd3e0aee0d76831d9.tar.xz
(svn r200) -Fix: oops, ALT+F4 didn't work anymore. Fixed now.
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 129e81ae2..65638e808 100644
--- a/win32.c
+++ b/win32.c
@@ -312,9 +312,11 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
case VK_RETURN: /* Full Screen */
MakeWindow(!_wnd.fullscreen);
return 0;
- default: /* just ALT or ALT in combination with something else */
+ case VK_MENU: /* Just ALT */
+ return 0; // do nothing
+ default: /* ALT in combination with something else */
_pressed_key = MapWindowsKey(wParam) << 16;
- return 0; // game doesn't have a title-bar, so just ignore that
+ break;
}
break;
case WM_NCMOUSEMOVE: