| 428 | } |
| 429 | |
| 430 | void CALLBACK HandleWmCommand(unsigned short wParam) |
| 431 | { |
| 432 | if (wParam == WM_KILLFOCUS) |
| 433 | { |
| 434 | // make sure we suspend the game (if focus is removed) only if the level is not being loaded |
| 435 | |
| 436 | if (!LevelLoadTask.valid()) |
| 437 | { |
| 438 | SuspendThread((HANDLE)ThreadHandle); |
| 439 | g_Renderer.ToggleFullScreen(); |
| 440 | ResumeThread((HANDLE)ThreadHandle); |
| 441 | } |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | LRESULT CALLBACK WinAppProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 446 | { |
no test coverage detected