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:
parent
c7fc076fdb
commit
f3672b5315
2
src/dd.c
2
src/dd.c
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user