Add call to DdReenableDirectDrawObject (GdiEntry10) where it is needed.

svn path=/trunk/; revision=18927
This commit is contained in:
Maarten Bosma 2005-11-01 12:02:12 +00:00
parent b7d56ed0e3
commit 416daf8bd1
2 changed files with 14 additions and 7 deletions

View file

@ -22,6 +22,8 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
if(!DdCreateDirectDrawObject (&This->DirectDrawGlobal, This->hdc))
return DDERR_INVALIDPARAMS;
BOOL dummy;
DdReenableDirectDrawObject(&This->DirectDrawGlobal, &dummy);
/* alloc all the space */
This->DirectDrawGlobal.lpDDCBtmp = (LPDDHAL_CALLBACKS)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
@ -226,7 +228,6 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
DriverInfo.dwExpectedSize = sizeof(DDNONLOCALVIDMEMCAPS);
This->HalInfo.GetDriverInfo(&DriverInfo);
/* Get the NTCallbacks */
/* Fill in wher
DriverInfo.guidInfo = GUID_NTCallbacks;
@ -476,8 +477,11 @@ HRESULT Hal_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD
{
return DDERR_NODRIVERSUPPORT;
}
BOOL dummy;
DdReenableDirectDrawObject(&This->DirectDrawGlobal, &dummy);
return mode.ddRVal
return mode.ddRVal;
}
#endif

View file

@ -82,16 +82,19 @@ HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel (LPDIRECTDRAW7 iface, HWND hw
HRESULT WINAPI Main_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeight,
DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
{
DWORD ret;
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
/* FIXME implement hal setMode */
if((ret = Hal_DirectDraw_SetDisplayMode(iface, dwWidth, dwHeight,
dwBPP, dwRefreshRate, dwFlags)) == DD_OK)
if(Hal_DirectDraw_SetDisplayMode(iface, dwWidth, dwHeight,
dwBPP, dwRefreshRate, dwFlags) == DD_OK)
{
return ret;
return DD_OK;
}
ret = Hel_DirectDraw_SetDisplayMode(iface, dwWidth, dwHeight, dwBPP, dwRefreshRate, dwFlags);
DWORD ret = Hel_DirectDraw_SetDisplayMode(iface, dwWidth, dwHeight, dwBPP, dwRefreshRate, dwFlags);
BOOL dummy;
DdReenableDirectDrawObject(&This->DirectDrawGlobal, &dummy);
return ret;
}