mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
disable clipper functions (needs more testing)
This commit is contained in:
parent
8ae5ef0c7e
commit
4326703c71
@ -45,16 +45,17 @@ HRESULT __stdcall IDirectDrawClipper__GetClipList(
|
|||||||
LPDWORD lpdwSiz)
|
LPDWORD lpdwSiz)
|
||||||
{
|
{
|
||||||
TRACE(
|
TRACE(
|
||||||
"-> %s(This=%p, lpRect=%p, lpClipList=%p, lpdwSiz=%p)\n",
|
"NOT_IMPLEMENTED -> %s(This=%p, lpRect=%p, lpClipList=%p, lpdwSiz=%p)\n",
|
||||||
__FUNCTION__,
|
__FUNCTION__,
|
||||||
This,
|
This,
|
||||||
lpRect,
|
lpRect,
|
||||||
lpClipList,
|
lpClipList,
|
||||||
lpdwSiz);
|
lpdwSiz);
|
||||||
|
|
||||||
HRESULT ret = ddc_GetClipList(This, lpRect, lpClipList, lpdwSiz);
|
HRESULT ret = DDERR_NOCLIPLIST;
|
||||||
|
//HRESULT ret = ddc_GetClipList(This, lpRect, lpClipList, lpdwSiz);
|
||||||
|
|
||||||
TRACE("<- %s\n", __FUNCTION__);
|
TRACE("NOT_IMPLEMENTED <- %s\n", __FUNCTION__);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,9 +85,10 @@ HRESULT __stdcall IDirectDrawClipper__IsClipListChanged(IDirectDrawClipperImpl*
|
|||||||
|
|
||||||
HRESULT __stdcall IDirectDrawClipper__SetClipList(IDirectDrawClipperImpl* This, LPRGNDATA lpClipList, DWORD dwFlags)
|
HRESULT __stdcall IDirectDrawClipper__SetClipList(IDirectDrawClipperImpl* This, LPRGNDATA lpClipList, DWORD dwFlags)
|
||||||
{
|
{
|
||||||
TRACE("-> %s(This=%p, lpClipList=%p, dwFlags=%08X)\n", __FUNCTION__, This, lpClipList, dwFlags);
|
TRACE("NOT_IMPLEMENTED -> %s(This=%p, lpClipList=%p, dwFlags=%08X)\n", __FUNCTION__, This, lpClipList, dwFlags);
|
||||||
HRESULT ret = ddc_SetClipList(This, lpClipList, dwFlags);
|
//HRESULT ret = ddc_SetClipList(This, lpClipList, dwFlags);
|
||||||
TRACE("<- %s\n", __FUNCTION__);
|
HRESULT ret = DD_OK;
|
||||||
|
TRACE("NOT_IMPLEMENTED <- %s\n", __FUNCTION__);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ HRESULT dds_Blt(
|
|||||||
|
|
||||||
BOOL is_stretch_blt = src_w != dst_w || src_h != dst_h;
|
BOOL is_stretch_blt = src_w != dst_w || src_h != dst_h;
|
||||||
|
|
||||||
|
/* Disable this for now (needs more testing)
|
||||||
if (This->clipper && !(dwFlags & DDBLT_NO_CLIP) && dst_w > 0 && dst_h > 0)
|
if (This->clipper && !(dwFlags & DDBLT_NO_CLIP) && dst_w > 0 && dst_h > 0)
|
||||||
{
|
{
|
||||||
DWORD size = 0;
|
DWORD size = 0;
|
||||||
@ -111,6 +112,7 @@ HRESULT dds_Blt(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (dst_rect.left < 0)
|
if (dst_rect.left < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user