mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
add checks for media stream
This commit is contained in:
parent
e2ae07dd31
commit
6f520b4843
@ -28,6 +28,9 @@
|
||||
#define WM_WINEFULLSCREEN WM_USER+112
|
||||
#define WM_D3D9DEVICELOST WM_USER+113
|
||||
|
||||
DEFINE_GUID(IID_IMediaStream, 0xb502d1bd, 0x9a57, 0x11d0, 0x8f, 0xde, 0x00, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
|
||||
DEFINE_GUID(IID_IAMMediaStream, 0xbebe595d, 0x9a6f, 0x11d0, 0x8f, 0xde, 0x00, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
|
||||
|
||||
extern BOOL ShowDriverWarning;
|
||||
extern RECT WindowRect;
|
||||
extern BOOL ChildWindowExists;
|
||||
|
@ -692,6 +692,8 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
||||
|
||||
HRESULT __stdcall ddraw_SetDisplayMode2(IDirectDrawImpl *This, DWORD width, DWORD height, DWORD bpp, DWORD refreshRate, DWORD flags)
|
||||
{
|
||||
printf("DirectDraw::SetDisplayMode2(refreshRate=%d, flags=%d)\n", (unsigned int)refreshRate, (unsigned int)flags);
|
||||
|
||||
return ddraw_SetDisplayMode(This, width, height, bpp);
|
||||
}
|
||||
|
||||
@ -1286,8 +1288,11 @@ HRESULT __stdcall ddraw_QueryInterface(IDirectDrawImpl *This, REFIID riid, void
|
||||
printf(" IID_IDirectDrawX\n");
|
||||
|
||||
ddraw_AddRef(This);
|
||||
This->lpVtbl->SetDisplayMode2 = ddraw_SetDisplayMode2;
|
||||
*obj = This;
|
||||
|
||||
if (!IsEqualGUID(&IID_IMediaStream, riid) && !IsEqualGUID(&IID_IAMMediaStream, riid))
|
||||
This->lpVtbl->SetDisplayMode2 = ddraw_SetDisplayMode2;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user