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:
parent
07d26d7bed
commit
ec36b6d7bc
@ -20,3 +20,4 @@ EXPORTS
|
||||
DirectInput8Create = fake_DirectInput8Create
|
||||
GameHandlesClose DATA
|
||||
pvBmpBits = FakePrimarySurface DATA
|
||||
DDIsWindowed
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user