- Fixed: Alt+F4 no longer quit the program.

SVN r1888 (trunk)
This commit is contained in:
Randy Heit 2009-09-30 04:44:14 +00:00
commit ed8f1ec8db
4 changed files with 14 additions and 6 deletions

View file

@ -431,6 +431,11 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
ToggleFullscreen = !ToggleFullscreen;
}
// Pressing Alt+F4 quits the program.
if (wParam == VK_F4 && !(lParam & 0x40000000))
{
PostQuitMessage(0);
}
break;
case WM_SYSCOMMAND: