mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
small ceanup in hal startup process
svn path=/trunk/; revision=18901
This commit is contained in:
parent
068f8ec126
commit
b8baa8476b
1 changed files with 7 additions and 15 deletions
|
@ -50,8 +50,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
||||||
NULL,
|
NULL,
|
||||||
NULL ))
|
NULL ))
|
||||||
{
|
{
|
||||||
OutputDebugString(L"First DdQueryDirectDrawObject failed");
|
return DD_FALSE;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
This->HalInfo.vmiData.pvmList = HeapAlloc(GetProcessHeap(), 0, sizeof(VIDMEM) * This->HalInfo.vmiData.dwNumHeaps);
|
This->HalInfo.vmiData.pvmList = HeapAlloc(GetProcessHeap(), 0, sizeof(VIDMEM) * This->HalInfo.vmiData.dwNumHeaps);
|
||||||
|
@ -72,8 +71,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
||||||
This->HalInfo.vmiData.pvmList
|
This->HalInfo.vmiData.pvmList
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
OutputDebugString(L"Second DdQueryDirectDrawObject failed");
|
return DD_FALSE;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy HalInfo to DirectDrawGlobal (Not complete)*/
|
/* Copy HalInfo to DirectDrawGlobal (Not complete)*/
|
||||||
|
@ -277,12 +275,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
||||||
DriverInfo.dwExpectedSize = sizeof(DDPIXELFORMAT);
|
DriverInfo.dwExpectedSize = sizeof(DDPIXELFORMAT);
|
||||||
This->HalInfo.GetDriverInfo( &DriverInfo);
|
This->HalInfo.GetDriverInfo( &DriverInfo);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Setup some info from the callbacks we got */
|
/* Setup some info from the callbacks we got */
|
||||||
|
|
||||||
/* FIXME do more callbacks and fill the gpl struct */
|
|
||||||
|
|
||||||
DDHAL_GETAVAILDRIVERMEMORYDATA mem;
|
DDHAL_GETAVAILDRIVERMEMORYDATA mem;
|
||||||
mem.lpDD = &This->DirectDrawGlobal;
|
mem.lpDD = &This->DirectDrawGlobal;
|
||||||
|
|
||||||
|
@ -291,8 +284,7 @@ HRESULT Hal_DirectDraw_Initialize (LPDIRECTDRAW7 iface)
|
||||||
This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
|
This->DirectDrawGlobal.ddCaps.dwVidMemFree = mem.dwFree;
|
||||||
This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
|
This->DirectDrawGlobal.ddCaps.dwVidMemTotal = mem.dwTotal;
|
||||||
|
|
||||||
/* Now all setup for HAL is done and we hopply do not have forget anything */
|
/* Now all setup for HAL is done */
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue