(svn r199) -Fix: [993374] Pressing alt locks the game - sort of a bug. I hope I didn't break anything :O
authordarkvater
Sat, 11 Sep 2004 00:19:53 +0000
changeset 198 0f3481fa50e1
parent 197 25749afe81ef
child 199 10f6a586bfa6
(svn r199) -Fix: [993374] Pressing alt locks the game - sort of a bug. I hope I didn't break anything :O
win32.c
--- a/win32.c	Fri Sep 10 23:20:14 2004 +0000
+++ b/win32.c	Sat Sep 11 00:19:53 2004 +0000
@@ -307,14 +307,14 @@
 		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: