Author: greatlrd Date: Sun Apr 2 00:48:54 2006 New Revision: 21440
URL: http://svn.reactos.ru/svn/reactos?rev=21440&view=rev Log: Implement Restore mode in DDraw interface
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c
Modified: trunk/reactos/dll/directx/ddraw/main/ddraw_main.c URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/dll/directx/ddraw/main/ddraw... ============================================================================== --- trunk/reactos/dll/directx/ddraw/main/ddraw_main.c (original) +++ trunk/reactos/dll/directx/ddraw/main/ddraw_main.c Sun Apr 2 00:48:54 2006 @@ -341,7 +341,7 @@ { DWORD status = DD_FALSE; IDirectDrawImpl *This = (IDirectDrawImpl *)iface; - + if (pDriverCaps != NULL) { RtlCopyMemory(pDriverCaps,&This->mDDrawGlobal.ddCaps,sizeof(DDCORECAPS)); @@ -353,9 +353,6 @@ RtlCopyMemory(pDriverCaps,&This->mDDrawGlobal.ddHELCaps,sizeof(DDCORECAPS)); status = DD_OK; } - - /* Both caps mixed ?? */ - /* DDCORECAPS ddBothCaps; */
return status; } @@ -448,6 +445,12 @@ return Hel_DirectDraw_GetScanLine( iface, lpdwScanLine); }
+HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface) +{ + ChangeDisplaySettings(NULL, 0); + return DD_OK; +} + /********************************** Stubs **********************************/
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW7 iface) @@ -491,10 +494,7 @@ DX_STUB; }
-HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface) -{ - DX_STUB; -} +
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDIRECTDRAW7 iface, HDC hdc, LPDIRECTDRAWSURFACE7 *lpDDS)