- Limit number of FIXME()s in Clipper_SetClipList and document
function. - Document Clipper_GetClipList.
This commit is contained in:
parent
20486e1c59
commit
998a827370
|
@ -124,22 +124,53 @@ ULONG WINAPI Main_DirectDrawClipper_Release(LPDIRECTDRAWCLIPPER iface) {
|
||||||
else return This->ref;
|
else return This->ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* IDirectDrawClipper::GetClipList
|
||||||
|
*
|
||||||
|
* Retrieve a copy of the clip list
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* lpRect Rectangle to be used to clip the clip list or NULL for the
|
||||||
|
* entire clip list
|
||||||
|
* lpClipList structure for the resulting copy of the clip list.
|
||||||
|
If NULL, fills lpdwSize up to the number of bytes necessary to hold
|
||||||
|
the entire clip.
|
||||||
|
* lpdwSize Size of resulting clip list; size of the buffer at lpClipList
|
||||||
|
or, if lpClipList is NULL, receives the required size of the buffer
|
||||||
|
in bytes
|
||||||
|
* RETURNS
|
||||||
|
* Either DD_OK or DDERR_*
|
||||||
|
*/
|
||||||
HRESULT WINAPI Main_DirectDrawClipper_GetClipList(
|
HRESULT WINAPI Main_DirectDrawClipper_GetClipList(
|
||||||
LPDIRECTDRAWCLIPPER iface,LPRECT prcClip,LPRGNDATA lprgn,LPDWORD pdwSize
|
LPDIRECTDRAWCLIPPER iface, LPRECT lpRect, LPRGNDATA lpClipList,
|
||||||
|
LPDWORD lpdwSize
|
||||||
) {
|
) {
|
||||||
ICOM_THIS(IDirectDrawClipperImpl,iface);
|
ICOM_THIS(IDirectDrawClipperImpl,iface);
|
||||||
static int warned = 0;
|
static int warned = 0;
|
||||||
if (warned++ < 10)
|
if (warned++ < 10)
|
||||||
FIXME("(%p,%p,%p,%p),stub!\n",This,prcClip,lprgn,pdwSize);
|
FIXME("(%p,%p,%p,%p),stub!\n",This,lpRect,lpClipList,lpdwSize);
|
||||||
if (pdwSize) *pdwSize=0;
|
if (lpdwSize) *lpdwSize=0;
|
||||||
return DDERR_NOCLIPLIST;
|
return DDERR_NOCLIPLIST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* IDirectDrawClipper::SetClipList
|
||||||
|
*
|
||||||
|
* Sets or deletes (if lprgn is NULL) the clip list
|
||||||
|
*
|
||||||
|
* PARAMS
|
||||||
|
* lprgn Pointer to a LRGNDATA structure or NULL
|
||||||
|
* dwFlags not used, must be 0
|
||||||
|
* RETURNS
|
||||||
|
* Either DD_OK or DDERR_*
|
||||||
|
*/
|
||||||
HRESULT WINAPI Main_DirectDrawClipper_SetClipList(
|
HRESULT WINAPI Main_DirectDrawClipper_SetClipList(
|
||||||
LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,DWORD pdwSize
|
LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,DWORD dwFlag
|
||||||
) {
|
) {
|
||||||
ICOM_THIS(IDirectDrawClipperImpl,iface);
|
ICOM_THIS(IDirectDrawClipperImpl,iface);
|
||||||
FIXME("(%p,%p,%ld),stub!\n",This,lprgn,pdwSize);
|
static int warned = 0;
|
||||||
|
if (warned++ < 10 || lprgn == NULL)
|
||||||
|
FIXME("(%p,%p,%ld),stub!\n",This,lprgn,dwFlag);
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,11 @@ Main_DirectDrawClipper_SetHwnd(LPDIRECTDRAWCLIPPER iface, DWORD dwFlags,
|
||||||
HWND hWnd);
|
HWND hWnd);
|
||||||
ULONG WINAPI Main_DirectDrawClipper_Release(LPDIRECTDRAWCLIPPER iface);
|
ULONG WINAPI Main_DirectDrawClipper_Release(LPDIRECTDRAWCLIPPER iface);
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
Main_DirectDrawClipper_GetClipList(LPDIRECTDRAWCLIPPER iface,LPRECT prcClip,
|
Main_DirectDrawClipper_GetClipList(LPDIRECTDRAWCLIPPER iface, LPRECT lpRect,
|
||||||
LPRGNDATA lprgn,LPDWORD pdwSize);
|
LPRGNDATA lpClipList, LPDWORD lpdwSize);
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
Main_DirectDrawClipper_SetClipList(LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,
|
Main_DirectDrawClipper_SetClipList(LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,
|
||||||
DWORD pdwSize);
|
DWORD dwFlag);
|
||||||
HRESULT WINAPI
|
HRESULT WINAPI
|
||||||
Main_DirectDrawClipper_QueryInterface(LPDIRECTDRAWCLIPPER iface, REFIID riid,
|
Main_DirectDrawClipper_QueryInterface(LPDIRECTDRAWCLIPPER iface, REFIID riid,
|
||||||
LPVOID* ppvObj);
|
LPVOID* ppvObj);
|
||||||
|
|
Loading…
Reference in New Issue