mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wined3d: Add IWineD3DSurface::UpdateOverlay.
This commit is contained in:
parent
05ff0d0f64
commit
2bcacf22d3
@ -1563,8 +1563,14 @@ IDirectDrawSurfaceImpl_UpdateOverlay(IDirectDrawSurface7 *iface,
|
||||
{
|
||||
ICOM_THIS_FROM(IDirectDrawSurfaceImpl, IDirectDrawSurface7, iface);
|
||||
IDirectDrawSurfaceImpl *Dst = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirectDrawSurface7, DstSurface);
|
||||
FIXME("(%p)->(%p,%p,%p,%lx,%p): Stub!\n", This, SrcRect, Dst, DstRect, Flags, FX);
|
||||
return DDERR_UNSUPPORTED;
|
||||
TRACE("(%p)->(%p,%p,%p,%lx,%p): Relay\n", This, SrcRect, Dst, DstRect, Flags, FX);
|
||||
|
||||
return IWineD3DSurface_UpdateOverlay(This->WineD3DSurface,
|
||||
SrcRect,
|
||||
Dst ? Dst->WineD3DSurface : NULL,
|
||||
DstRect,
|
||||
Flags,
|
||||
(WINEDDOVERLAYFX *) FX);
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
@ -3096,6 +3096,14 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UpdateOverlayZOrder(IWineD3DSurface *iface, D
|
||||
return WINED3D_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI IWineD3DSurfaceImpl_UpdateOverlay(IWineD3DSurface *iface, RECT *SrcRect, IWineD3DSurface *DstSurface, RECT *DstRect, DWORD Flags, WINEDDOVERLAYFX *FX) {
|
||||
IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface;
|
||||
IWineD3DSurfaceImpl *Dst = (IWineD3DSurfaceImpl *) DstSurface;
|
||||
FIXME("(%p)->(%p, %p, %p, %08x, %p)\n", This, SrcRect, Dst, DstRect, Flags, FX);
|
||||
|
||||
return WINED3D_OK;
|
||||
}
|
||||
|
||||
const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
|
||||
{
|
||||
/* IUnknown */
|
||||
@ -3136,6 +3144,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
|
||||
IWineD3DSurfaceImpl_SetOverlayPosition,
|
||||
IWineD3DSurfaceImpl_GetOverlayPosition,
|
||||
IWineD3DSurfaceImpl_UpdateOverlayZOrder,
|
||||
IWineD3DSurfaceImpl_UpdateOverlay,
|
||||
/* Internal use: */
|
||||
IWineD3DSurfaceImpl_CleanDirtyRect,
|
||||
IWineD3DSurfaceImpl_AddDirtyRect,
|
||||
|
@ -1586,6 +1586,7 @@ const IWineD3DSurfaceVtbl IWineGDISurface_Vtbl =
|
||||
IWineD3DSurfaceImpl_SetOverlayPosition,
|
||||
IWineD3DSurfaceImpl_GetOverlayPosition,
|
||||
IWineD3DSurfaceImpl_UpdateOverlayZOrder,
|
||||
IWineD3DSurfaceImpl_UpdateOverlay,
|
||||
/* Internal use: */
|
||||
IWineD3DSurfaceImpl_CleanDirtyRect,
|
||||
IWineD3DSurfaceImpl_AddDirtyRect,
|
||||
|
@ -951,6 +951,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_SetMem(IWineD3DSurface *iface, void *Mem);
|
||||
HRESULT WINAPI IWineD3DSurfaceImpl_SetOverlayPosition(IWineD3DSurface *iface, LONG X, LONG Y);
|
||||
HRESULT WINAPI IWineD3DSurfaceImpl_GetOverlayPosition(IWineD3DSurface *iface, LONG *X, LONG *Y);
|
||||
HRESULT WINAPI IWineD3DSurfaceImpl_UpdateOverlayZOrder(IWineD3DSurface *iface, DWORD Flags, IWineD3DSurface *Ref);
|
||||
HRESULT WINAPI IWineD3DSurfaceImpl_UpdateOverlay(IWineD3DSurface *iface, RECT *SrcRect, IWineD3DSurface *DstSurface, RECT *DstRect, DWORD Flags, WINEDDOVERLAYFX *FX);
|
||||
|
||||
/* Surface flags: */
|
||||
#define SFLAG_OVERSIZE 0x00000001 /* Surface is bigger than gl size, blts only */
|
||||
|
@ -1136,6 +1136,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
|
||||
STDMETHOD(SetOverlayPosition)(THIS_ LONG X, LONG Y) PURE;
|
||||
STDMETHOD(GetOverlayPosition)(THIS_ LONG *X, LONG *Y) PURE;
|
||||
STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD Flags, IWineD3DSurface *Ref) PURE;
|
||||
STDMETHOD(UpdateOverlay)(THIS_ RECT *SrcRect, IWineD3DSurface *DstSurface, RECT *DstRect, DWORD Flags, WINEDDOVERLAYFX *FX);
|
||||
/* Internally used methods */
|
||||
STDMETHOD(CleanDirtyRect)(THIS) PURE;
|
||||
STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE;
|
||||
@ -1191,6 +1192,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
|
||||
#define IWineD3DSurface_SetOverlayPosition(p, a, b) (p)->lpVtbl->SetOverlayPosition(p, a, b)
|
||||
#define IWineD3DSurface_GetOverlayPosition(p, a, b) (p)->lpVtbl->GetOverlayPosition(p, a, b)
|
||||
#define IWineD3DSurface_UpdateOverlayZOrder(p, a, b) (p)->lpVtbl->UpdateOverlayZOrder(p, a, b)
|
||||
#define IWineD3DSurface_UpdateOverlay(p, a, b, c, d, e) (p)->lpVtbl->UpdateOverlay(p, a, b, c, d, e)
|
||||
/*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
|
||||
#define IWineD3DSurface_CleanDirtyRect(p) (p)->lpVtbl->CleanDirtyRect(p)
|
||||
#define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
|
||||
|
Loading…
Reference in New Issue
Block a user