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

let game handle window close so it can restore the original cursor

This commit is contained in:
FunkyFr3sh 2024-03-18 01:10:04 +01:00
parent c7fc076fdb
commit f3672b5315

View File

@ -14,6 +14,7 @@
#include "debug.h" #include "debug.h"
#include "utils.h" #include "utils.h"
#include "blt.h" #include "blt.h"
#include "dllmain.h"
CNCDDRAW* g_ddraw = NULL; CNCDDRAW* g_ddraw = NULL;
@ -1224,6 +1225,7 @@ HRESULT dd_SetCooperativeLevel(HWND hwnd, DWORD dwFlags)
} }
else else
{ {
GameHandlesClose = TRUE;
g_config.devmode = TRUE; g_config.devmode = TRUE;
g_config.fullscreen = FALSE; g_config.fullscreen = FALSE;
g_config.windowed = TRUE; g_config.windowed = TRUE;