1
0
Fork 0

(svn r199) -Fix: [993374] Pressing alt locks the game - sort of a bug. I hope I didn't break anything :O

release/0.4.5
darkvater 2004-09-11 00:19:53 +00:00
parent a956b63b41
commit 2cd8a89d44
1 changed files with 4 additions and 4 deletions

View File

@ -307,14 +307,14 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
break; break;
case WM_SYSKEYDOWN: case WM_SYSKEYDOWN: /* user presses F10 or Alt, both activating the title-menu */
switch(wParam) { switch(wParam) {
case VK_RETURN: case VK_RETURN: /* Full Screen */
MakeWindow(!_wnd.fullscreen); MakeWindow(!_wnd.fullscreen);
return 0; return 0;
default: default: /* just ALT or ALT in combination with something else */
_pressed_key = MapWindowsKey(wParam) << 16; _pressed_key = MapWindowsKey(wParam) << 16;
break; return 0; // game doesn't have a title-bar, so just ignore that
} }
break; break;
case WM_NCMOUSEMOVE: case WM_NCMOUSEMOVE: