1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-14 22:03:27 +01:00

export DDIsWindowed function so fan patched games can query the windowed state

This commit is contained in:
FunkyFr3sh 2023-11-13 00:18:17 +01:00
parent 07d26d7bed
commit ec36b6d7bc
3 changed files with 7 additions and 1 deletions

View File

@ -20,3 +20,4 @@ EXPORTS
DirectInput8Create = fake_DirectInput8Create
GameHandlesClose DATA
pvBmpBits = FakePrimarySurface DATA
DDIsWindowed

View File

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

View File

@ -133,6 +133,11 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
return TRUE;
}
BOOL DDIsWindowed()
{
return g_config.windowed && !g_config.fullscreen;
}
HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnknown FAR* pUnkOuter)
{
TRACE("-> %s(lpGUID=%p, lplpDD=%p, pUnkOuter=%p)\n", __FUNCTION__, lpGUID, lplpDD, pUnkOuter);