mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Some cosmetic changes like replacing tabs with spaces and grouping all stubs together.
svn path=/trunk/; revision=18925
This commit is contained in:
parent
e72a06483d
commit
abdfa2a93b
2 changed files with 610 additions and 640 deletions
|
@ -85,7 +85,6 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
}
|
||||
|
||||
/* Copy HalInfo to DirectDrawGlobal (Not complete)*/
|
||||
|
||||
RtlCopyMemory(&This->DirectDrawGlobal.vmiData,&This->HalInfo.vmiData,sizeof(VIDMEMINFO));
|
||||
RtlCopyMemory(&This->DirectDrawGlobal.ddCaps,&This->HalInfo.ddCaps,sizeof(DDCORECAPS));
|
||||
This->DirectDrawGlobal.dwMonitorFrequency = This->HalInfo.dwMonitorFrequency;
|
||||
|
@ -94,17 +93,13 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
This->DirectDrawGlobal.dwNumModes = This->HalInfo.dwNumModes;
|
||||
This->DirectDrawGlobal.lpModeInfo = This->HalInfo.lpModeInfo;
|
||||
|
||||
|
||||
/* Unsure which of these two for lpPDevice
|
||||
This->DirectDrawGlobal.dwPDevice = This->HalInfo.lpPDevice;
|
||||
This->lpDriverHandle = This->HalInfo.lpPDevice;
|
||||
*/
|
||||
|
||||
This->DirectDrawGlobal.hInstance = This->HalInfo.hInstance;
|
||||
|
||||
RtlCopyMemory(&This->DirectDrawGlobal.lpDDCBtmp->HALDDExeBuf,&This->HalInfo.lpDDExeBufCallbacks,sizeof(DDHAL_DDEXEBUFCALLBACKS));
|
||||
|
||||
|
||||
RtlCopyMemory(&This->DirectDrawGlobal.lpDDCBtmp->HALDDExeBuf,
|
||||
&This->HalInfo.lpDDExeBufCallbacks,sizeof(DDHAL_DDEXEBUFCALLBACKS));
|
||||
|
||||
/************************************************************************/
|
||||
/* Set up the rest of the callbacks all callbacks we get back from */
|
||||
|
@ -112,7 +107,6 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
/************************************************************************/
|
||||
|
||||
/* Todo add a check see if HalInfo.GetDriverInfo is supported or not */
|
||||
|
||||
/* Do not trust msdn what it say about dwContext it is not in use for
|
||||
windows nt, it is in use for all os, and it always pont to
|
||||
DirectDrawGlobal.hDD */
|
||||
|
@ -126,16 +120,13 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.dwSize = sizeof(DDHAL_GETDRIVERINFODATA);
|
||||
DriverInfo.dwContext = This->DirectDrawGlobal.hDD;
|
||||
|
||||
|
||||
/* Get ColorControlCallbacks */
|
||||
DriverInfo.guidInfo = GUID_ColorControlCallbacks;
|
||||
DriverInfo.lpvData = &This->DirectDrawGlobal.lpDDCBtmp->HALDDColorControl;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDCOLORCONTROLCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the GUID_D3DCallbacks callback */
|
||||
|
||||
/* Problem with include files
|
||||
DDHAL_DDMISCELLANEOUSCALLBACKS misc;
|
||||
DriverInfo.guidInfo = GUID_D3DCallbacks;
|
||||
|
@ -149,7 +140,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_D3DCallbacks2;
|
||||
DriverInfo.lpvData = (PVOID)This->DirectDrawGlobal.lpD3DHALCallbacks2;
|
||||
DriverInfo.dwExpectedSize = sizeof(D3DHAL_CALLBACKS2);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
|
||||
/* Get the D3DCallbacks3 */
|
||||
|
@ -158,8 +149,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_D3DCallbacks3;
|
||||
DriverInfo.lpvData = (PVOID)This->DirectDrawGlobal.lpD3DHALCallbacks;
|
||||
DriverInfo.dwExpectedSize = sizeof(D3DHAL_CALLBACKS3);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the misc callback */
|
||||
/* Problem with include files
|
||||
|
@ -176,8 +166,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_D3DExtendedCaps;
|
||||
DriverInfo.lpvData = (PVOID) This->DirectDrawGlobal.lpD3DExtendedCaps;
|
||||
DriverInfo.dwExpectedSize = sizeof(D3DHAL_D3DEXTENDEDCAPS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the D3DParseUnknownCommandCallback */
|
||||
/* D3dDrawPrimitives2 callback where should it be fill in
|
||||
|
@ -195,13 +184,11 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
*/
|
||||
|
||||
|
||||
/* Get the KernelCallbacks */
|
||||
DriverInfo.guidInfo = GUID_KernelCallbacks;
|
||||
DriverInfo.lpvData = &This->DirectDrawGlobal.lpDDCBtmp->HALDDKernel;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDKERNELCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the KernelCaps */
|
||||
This->DirectDrawGlobal.lpDDKernelCaps = (LPDDKERNELCAPS)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
|
@ -209,15 +196,13 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_KernelCaps;
|
||||
DriverInfo.lpvData = (PVOID) This->DirectDrawGlobal.lpDDKernelCaps;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDKERNELCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the MiscellaneousCallbacks */
|
||||
DriverInfo.guidInfo = GUID_MiscellaneousCallbacks;
|
||||
DriverInfo.lpvData = &This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDMISCELLANEOUSCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the Miscellaneous2Callbacks */
|
||||
/* Not in the DDRAWI_DIRECTDRAW_GBL we map it up as private
|
||||
|
@ -225,15 +210,13 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_Miscellaneous2Callbacks;
|
||||
DriverInfo.lpvData = &This->Misc2Callback;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDMISCELLANEOUSCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the MotionCompCallbacks */
|
||||
DriverInfo.guidInfo = GUID_MotionCompCallbacks;
|
||||
DriverInfo.lpvData = &This->DirectDrawGlobal.lpDDCBtmp->HALDDMotionComp;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDMOTIONCOMPCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the NonLocalVidMemCaps */
|
||||
This->DirectDrawGlobal.lpddNLVCaps = (LPDDNONLOCALVIDMEMCAPS)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
|
@ -241,7 +224,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_NonLocalVidMemCaps;
|
||||
DriverInfo.lpvData = (PVOID)This->DirectDrawGlobal.lpddNLVCaps;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDNONLOCALVIDMEMCAPS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
|
||||
/* Get the NTCallbacks */
|
||||
|
@ -272,8 +255,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_VideoPortCallbacks;
|
||||
DriverInfo.lpvData = &This->DirectDrawGlobal.lpDDCBtmp->HALDDVideoPort;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDHAL_DDVIDEOPORTCALLBACKS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the VideoPortCaps */
|
||||
This->DirectDrawGlobal.lpDDVideoPortCaps = (LPDDVIDEOPORTCAPS)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
|
@ -281,8 +263,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_VideoPortCaps;
|
||||
DriverInfo.lpvData = (PVOID)This->DirectDrawGlobal.lpDDVideoPortCaps;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDVIDEOPORTCAPS);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Get the ZPixelFormats */
|
||||
This->DirectDrawGlobal.lpZPixelFormats = (LPDDPIXELFORMAT) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
|
@ -290,14 +271,12 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
|||
DriverInfo.guidInfo = GUID_ZPixelFormats;
|
||||
DriverInfo.lpvData = (PVOID)This->DirectDrawGlobal.lpZPixelFormats;
|
||||
DriverInfo.dwExpectedSize = sizeof(DDPIXELFORMAT);
|
||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||
This->HalInfo.GetDriverInfo(&DriverInfo);
|
||||
|
||||
/* Setup some info from the callbacks we got */
|
||||
DDHAL_GETAVAILDRIVERMEMORYDATA mem;
|
||||
mem.lpDD = &This->DirectDrawGlobal;
|
||||
|
||||
This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous.GetAvailDriverMemory(&mem);
|
||||
|
||||
This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
|
||||
This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
|
||||
|
||||
|
@ -471,8 +450,13 @@ HRESULT Hal_DirectDraw_FlipToGDISurface(LPDIRECTDRAW7 iface)
|
|||
HRESULT Hal_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeight,
|
||||
DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
|
||||
{
|
||||
DDHAL_SETMODEDATA mode;
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
#if 0
|
||||
HRESULT Hal_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD dwHeight,
|
||||
DWORD dwBPP, DWORD dwRefreshRate, DWORD dwFlags)
|
||||
{
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
||||
if (!(This->DirectDrawGlobal.lpDDCBtmp->HALDD.dwFlags & DDHAL_CB32_SETMODE))
|
||||
|
@ -480,19 +464,20 @@ HRESULT Hal_DirectDraw_SetDisplayMode (LPDIRECTDRAW7 iface, DWORD dwWidth, DWORD
|
|||
return DDERR_NODRIVERSUPPORT;
|
||||
}
|
||||
|
||||
DDHAL_SETMODEDATA mode;
|
||||
mode.lpDD = &This->DirectDrawGlobal;
|
||||
mode.ddRVal = DDERR_NODRIVERSUPPORT;
|
||||
|
||||
/* FIXME : add search for which mode.ModeIndex we should use */
|
||||
/* FIXME : fill the mode.inexcl; */
|
||||
/* FIXME : fill the mode.useRefreshRate; */
|
||||
// FIXME : add search for which mode.ModeIndex we should use
|
||||
// FIXME : fill the mode.inexcl;
|
||||
// FIXME : fill the mode.useRefreshRate;
|
||||
|
||||
/*
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDD.SetMode(&mode) != DDHAL_DRIVER_HANDLED)
|
||||
{
|
||||
return DDERR_NODRIVERSUPPORT;
|
||||
}
|
||||
*/
|
||||
DX_STUB;
|
||||
/* return mode.ddRVal */
|
||||
|
||||
return mode.ddRVal
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -16,8 +16,6 @@ HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW7 iface, LPGUID lpGUID)
|
|||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
HRESULT ret;
|
||||
|
||||
|
||||
|
||||
// this if it is not called by DirectDrawCreate
|
||||
if(FALSE)
|
||||
return DDERR_ALREADYINITIALIZED;
|
||||
|
@ -39,7 +37,6 @@ HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW7 iface, LPGUID lpGUID)
|
|||
if((ret = Hel_DirectDraw_Initialize (iface)) != DD_OK)
|
||||
return ret;
|
||||
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
|
@ -73,7 +70,6 @@ HRESULT WINAPI Main_DirectDraw_SetCooperativeLevel (LPDIRECTDRAW7 iface, HWND hw
|
|||
This->hdc = GetDC(hwnd);
|
||||
This->cooperative_level = cooplevel;
|
||||
|
||||
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDD.dwFlags & DDHAL_CB32_SETEXCLUSIVEMODE)
|
||||
{
|
||||
return Hal_DirectDraw_SetCooperativeLevel (iface);
|
||||
|
@ -182,15 +178,12 @@ HRESULT WINAPI Main_DirectDraw_CreateSurface (LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
|
||||
This->DirectDrawGlobal.dsList = (LPDDRAWI_DDRAWSURFACE_INT)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
sizeof(DDRAWI_DDRAWSURFACE_INT));
|
||||
|
||||
That->owner = (IDirectDrawImpl *)This;
|
||||
|
||||
That->owner->DirectDrawGlobal.dsList->dwIntRefCnt =1;
|
||||
|
||||
/* we alwasy set to use the DirectDrawSurface7_Vtable as internel */
|
||||
That->owner->DirectDrawGlobal.dsList->lpVtbl = (PVOID) &DirectDrawSurface7_Vtable;
|
||||
|
||||
|
||||
*ppSurf = (LPDIRECTDRAWSURFACE7)That;
|
||||
|
||||
// the real surface object creation
|
||||
|
@ -246,32 +239,6 @@ HRESULT WINAPI Main_DirectDraw_CreatePalette(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
|||
return That->lpVtbl->Initialize (*ppPalette, (LPDIRECTDRAW)iface, dwFlags, palent);
|
||||
}
|
||||
|
||||
/**** Stubs ****/
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW7 iface)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 src,
|
||||
LPDIRECTDRAWSURFACE7* dst)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMMODESCALLBACK2 callback)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
LPDDSURFACEDESC2 lpDDSD2, LPVOID context,
|
||||
LPDDENUMSURFACESCALLBACK7 callback)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_FlipToGDISurface(LPDIRECTDRAW7 iface)
|
||||
{
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
@ -320,19 +287,12 @@ HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
pDDSD->dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_PITCH | DDSD_PIXELFORMAT | DDSD_REFRESHRATE | DDSD_WIDTH;
|
||||
pDDSD->dwHeight = This->DirectDrawGlobal.vmiData.dwDisplayHeight;
|
||||
pDDSD->dwWidth = This->DirectDrawGlobal.vmiData.dwDisplayWidth;
|
||||
|
||||
/* FIXME Do not use DUMMYUNIONNAME1 some how union lPitch does not see by the compiler
|
||||
but rest of the union are visable. more header problem ???
|
||||
*/
|
||||
pDDSD->lPitch = This->DirectDrawGlobal.vmiData.lDisplayPitch;
|
||||
|
||||
|
||||
/* have not check where I should get hold of this info yet
|
||||
DWORD dwBackBufferCount;
|
||||
*/
|
||||
|
||||
pDDSD->dwRefreshRate = This->DirectDrawGlobal.dwMonitorFrequency;
|
||||
|
||||
/* have not check where I should get hold of this info yet */
|
||||
DWORD dwBackBufferCount;
|
||||
|
||||
/* have not check where I should get hold of this info yet
|
||||
DWORD dwAlphaBitDepth;
|
||||
DWORD dwReserved;
|
||||
|
@ -347,7 +307,6 @@ HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
DDCOLORKEY ddckCKSrcBlt;
|
||||
*/
|
||||
|
||||
|
||||
RtlCopyMemory(&pDDSD->ddpfPixelFormat,&This->DirectDrawGlobal.vmiData.ddpfDisplay,sizeof(DDPIXELFORMAT));
|
||||
RtlCopyMemory(&pDDSD->ddsCaps,&This->DirectDrawGlobal.ddCaps,sizeof(DDCORECAPS));
|
||||
|
||||
|
@ -358,16 +317,30 @@ HRESULT WINAPI Main_DirectDraw_GetDisplayMode(LPDIRECTDRAW7 iface, LPDDSURFACEDE
|
|||
return DD_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD pNumCodes, LPDWORD pCodes)
|
||||
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
HANDLE h)
|
||||
{
|
||||
DX_STUB;
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDD.dwFlags & DDHAL_CB32_WAITFORVERTICALBLANK)
|
||||
{
|
||||
return Hal_DirectDraw_WaitForVerticalBlank( iface, dwFlags, h);
|
||||
}
|
||||
|
||||
return Hel_DirectDraw_WaitForVerticalBlank( iface, dwFlags, h);
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDIRECTDRAW7 iface,
|
||||
LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
|
||||
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
|
||||
LPDWORD total, LPDWORD free)
|
||||
{
|
||||
DX_STUB;
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous.dwFlags & DDHAL_MISCCB32_GETAVAILDRIVERMEMORY)
|
||||
{
|
||||
return Hal_DirectDraw_GetAvailableVidMem (iface,ddscaps,total,free);
|
||||
}
|
||||
|
||||
return Hel_DirectDraw_GetAvailableVidMem (iface,ddscaps,total,free);
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetMonitorFrequency(LPDIRECTDRAW7 iface,LPDWORD freq)
|
||||
|
@ -395,6 +368,44 @@ HRESULT WINAPI Main_DirectDraw_GetScanLine(LPDIRECTDRAW7 iface, LPDWORD lpdwScan
|
|||
return Hel_DirectDraw_GetScanLine( iface, lpdwScanLine);
|
||||
}
|
||||
|
||||
/********************************** Stubs **********************************/
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_Compact(LPDIRECTDRAW7 iface)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_DuplicateSurface(LPDIRECTDRAW7 iface, LPDIRECTDRAWSURFACE7 src,
|
||||
LPDIRECTDRAWSURFACE7* dst)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_EnumDisplayModes(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
LPDDSURFACEDESC2 pDDSD, LPVOID context, LPDDENUMMODESCALLBACK2 callback)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_EnumSurfaces(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
LPDDSURFACEDESC2 lpDDSD2, LPVOID context,
|
||||
LPDDENUMSURFACESCALLBACK7 callback)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetFourCCCodes(LPDIRECTDRAW7 iface, LPDWORD pNumCodes, LPDWORD pCodes)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetGDISurface(LPDIRECTDRAW7 iface,
|
||||
LPDIRECTDRAWSURFACE7 *lplpGDIDDSSurface)
|
||||
{
|
||||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW7 iface, LPBOOL status)
|
||||
{
|
||||
DX_STUB;
|
||||
|
@ -405,32 +416,6 @@ HRESULT WINAPI Main_DirectDraw_RestoreDisplayMode(LPDIRECTDRAW7 iface)
|
|||
DX_STUB;
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_WaitForVerticalBlank(LPDIRECTDRAW7 iface, DWORD dwFlags,
|
||||
HANDLE h)
|
||||
{
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDD.dwFlags & DDHAL_CB32_WAITFORVERTICALBLANK)
|
||||
{
|
||||
return Hal_DirectDraw_WaitForVerticalBlank( iface, dwFlags, h);
|
||||
}
|
||||
|
||||
return Hel_DirectDraw_WaitForVerticalBlank( iface, dwFlags, h);
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem(LPDIRECTDRAW7 iface, LPDDSCAPS2 ddscaps,
|
||||
LPDWORD total, LPDWORD free)
|
||||
{
|
||||
IDirectDrawImpl* This = (IDirectDrawImpl*)iface;
|
||||
|
||||
if (This->DirectDrawGlobal.lpDDCBtmp->HALDDMiscellaneous.dwFlags & DDHAL_MISCCB32_GETAVAILDRIVERMEMORY)
|
||||
{
|
||||
return Hal_DirectDraw_GetAvailableVidMem (iface,ddscaps,total,free);
|
||||
}
|
||||
|
||||
return Hel_DirectDraw_GetAvailableVidMem (iface,ddscaps,total,free);
|
||||
}
|
||||
|
||||
HRESULT WINAPI Main_DirectDraw_GetSurfaceFromDC(LPDIRECTDRAW7 iface, HDC hdc,
|
||||
LPDIRECTDRAWSURFACE7 *lpDDS)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue