1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

fix GameHandlesClose

This commit is contained in:
FunkyFr3sh 2018-11-17 08:33:36 +01:00
parent 95dcf06c9c
commit bbd76a5d9e
2 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_BUILD 5 #define VERSION_BUILD 5
#define VERSION_REVISION 5 #define VERSION_REVISION 6
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION #define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION) #define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)

View File

@ -977,8 +977,11 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
ToggleFullscreen(); ToggleFullscreen();
return 0; return 0;
} }
return DefWindowProc(hWnd, uMsg, wParam, lParam); if (!GameHandlesClose)
return DefWindowProc(hWnd, uMsg, wParam, lParam);
break;
case WM_ACTIVATE: case WM_ACTIVATE:
if (wParam == WA_ACTIVE || wParam == WA_CLICKACTIVE) if (wParam == WA_ACTIVE || wParam == WA_CLICKACTIVE)