mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
lite more code.
nothing works yet. add some check see if the parama are right. svn path=/trunk/; revision=14191
This commit is contained in:
parent
e24c42bb6b
commit
229fed0315
1 changed files with 8 additions and 4 deletions
|
@ -16,11 +16,15 @@
|
|||
|
||||
HRESULT WINAPI DirectDrawCreate(LPGUID lpGUID, LPVOID* lplpDD, LPUNKNOWN pUnkOuter)
|
||||
{
|
||||
return DDRAW_Create(lpGUID, (LPVOID*) lplpDD, pUnkOuter, &IID_IDirectDraw, FALSE);
|
||||
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
|
||||
return DDRAW_Create(lpGUID, (LPVOID*) lplpDD, pUnkOuter, &IID_IDirectDraw, FALSE);
|
||||
}
|
||||
|
||||
HRESULT WINAPI DirectDrawCreateEx(LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter)
|
||||
{
|
||||
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
|
||||
if (!IsEqualGUID(iid, &IID_IDirectDraw7)) return DDERR_INVALIDPARAMS;
|
||||
|
||||
return DDRAW_Create(lpGUID, lplpDD, pUnkOuter, iid, TRUE);
|
||||
}
|
||||
|
||||
|
@ -81,14 +85,14 @@ HRESULT DDRAW_Create(
|
|||
now we will assume it is the current display driver
|
||||
*/
|
||||
|
||||
if (pUnkOuter != NULL) return DDERR_INVALIDPARAMS;
|
||||
|
||||
/*
|
||||
desktop = GetWindowDC(GetDesktopWindow());
|
||||
|
||||
lplpDD = OsThunkDdCreateDirectDrawObject(desktop);
|
||||
if (lplpDD == NULL) return DDERR_NODIRECTDRAWHW;
|
||||
*/
|
||||
|
||||
return DD_OK;
|
||||
return DDERR_NODIRECTDRAWHW;
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved)
|
||||
|
|
Loading…
Reference in a new issue