ddraw: Avoid LPDIRECTDRAWSURFACE2.
This commit is contained in:
parent
10db575044
commit
b146861c36
|
@ -776,8 +776,8 @@ static ULONG getref(IUnknown *iface)
|
|||
|
||||
static void GetDDInterface_1(void)
|
||||
{
|
||||
IDirectDrawSurface2 *dsurface2;
|
||||
LPDIRECTDRAWSURFACE dsurface;
|
||||
LPDIRECTDRAWSURFACE2 dsurface2;
|
||||
DDSURFACEDESC surface;
|
||||
HRESULT ret;
|
||||
IDirectDraw2 *dd2;
|
||||
|
@ -840,8 +840,8 @@ static void GetDDInterface_1(void)
|
|||
|
||||
static void GetDDInterface_2(void)
|
||||
{
|
||||
IDirectDrawSurface2 *dsurface2;
|
||||
LPDIRECTDRAWSURFACE dsurface;
|
||||
LPDIRECTDRAWSURFACE2 dsurface2;
|
||||
DDSURFACEDESC surface;
|
||||
HRESULT ret;
|
||||
IDirectDraw2 *dd2;
|
||||
|
@ -902,7 +902,7 @@ static void GetDDInterface_2(void)
|
|||
static void GetDDInterface_4(void)
|
||||
{
|
||||
IDirectDrawSurface4 *dsurface4;
|
||||
LPDIRECTDRAWSURFACE2 dsurface2;
|
||||
IDirectDrawSurface2 *dsurface2;
|
||||
DDSURFACEDESC2 surface;
|
||||
HRESULT ret;
|
||||
IDirectDraw2 *dd2;
|
||||
|
|
|
@ -1990,16 +1990,18 @@ DECLARE_INTERFACE_(IDirectDrawSurface2,IUnknown)
|
|||
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
||||
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
||||
/*** IDirectDrawSurface2 methods ***/
|
||||
STDMETHOD(AddAttachedSurface)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface) PURE;
|
||||
STDMETHOD(AddAttachedSurface)(THIS_ IDirectDrawSurface2 *attachment) PURE;
|
||||
STDMETHOD(AddOverlayDirtyRect)(THIS_ LPRECT lpRect) PURE;
|
||||
STDMETHOD(Blt)(THIS_ LPRECT lpDestRect, LPDIRECTDRAWSURFACE2 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwFlags, LPDDBLTFX lpDDBltFx) PURE;
|
||||
STDMETHOD(Blt)(THIS_ RECT *dst_rect, IDirectDrawSurface2 *src_surface, RECT *src_rect,
|
||||
DWORD flags, DDBLTFX *fx) PURE;
|
||||
STDMETHOD(BltBatch)(THIS_ LPDDBLTBATCH lpDDBltBatch, DWORD dwCount, DWORD dwFlags) PURE;
|
||||
STDMETHOD(BltFast)(THIS_ DWORD dwX, DWORD dwY, LPDIRECTDRAWSURFACE2 lpDDSrcSurface, LPRECT lpSrcRect, DWORD dwTrans) PURE;
|
||||
STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE2 lpDDSAttachedSurface) PURE;
|
||||
STDMETHOD(BltFast)(THIS_ DWORD x, DWORD y, IDirectDrawSurface2 *src_surface,
|
||||
RECT *src_rect, DWORD flags) PURE;
|
||||
STDMETHOD(DeleteAttachedSurface)(THIS_ DWORD flags, IDirectDrawSurface2 *attachment) PURE;
|
||||
STDMETHOD(EnumAttachedSurfaces)(THIS_ LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpEnumSurfacesCallback) PURE;
|
||||
STDMETHOD(EnumOverlayZOrders)(THIS_ DWORD dwFlags, LPVOID lpContext, LPDDENUMSURFACESCALLBACK lpfnCallback) PURE;
|
||||
STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE2 lpDDSurfaceTargetOverride, DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetAttachedSurface)(THIS_ LPDDSCAPS lpDDSCaps, LPDIRECTDRAWSURFACE2 *lplpDDAttachedSurface) PURE;
|
||||
STDMETHOD(Flip)(THIS_ IDirectDrawSurface2 *dst_surface, DWORD flags) PURE;
|
||||
STDMETHOD(GetAttachedSurface)(THIS_ DDSCAPS *caps, IDirectDrawSurface2 **attachment) PURE;
|
||||
STDMETHOD(GetBltStatus)(THIS_ DWORD dwFlags) PURE;
|
||||
STDMETHOD(GetCaps)(THIS_ LPDDSCAPS lpDDSCaps) PURE;
|
||||
STDMETHOD(GetClipper)(THIS_ LPDIRECTDRAWCLIPPER *lplpDDClipper) PURE;
|
||||
|
@ -2020,9 +2022,10 @@ DECLARE_INTERFACE_(IDirectDrawSurface2,IUnknown)
|
|||
STDMETHOD(SetOverlayPosition)(THIS_ LONG lX, LONG lY) PURE;
|
||||
STDMETHOD(SetPalette)(THIS_ LPDIRECTDRAWPALETTE lpDDPalette) PURE;
|
||||
STDMETHOD(Unlock)(THIS_ LPVOID lpSurfaceData) PURE;
|
||||
STDMETHOD(UpdateOverlay)(THIS_ LPRECT lpSrcRect, LPDIRECTDRAWSURFACE2 lpDDDestSurface, LPRECT lpDestRect, DWORD dwFlags, LPDDOVERLAYFX lpDDOverlayFx) PURE;
|
||||
STDMETHOD(UpdateOverlay)(THIS_ RECT *src_rect, IDirectDrawSurface2 *dst_surface, RECT *dst_rect,
|
||||
DWORD flags, DDOVERLAYFX *fx) PURE;
|
||||
STDMETHOD(UpdateOverlayDisplay)(THIS_ DWORD dwFlags) PURE;
|
||||
STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD dwFlags, LPDIRECTDRAWSURFACE2 lpDDSReference) PURE;
|
||||
STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD flags, IDirectDrawSurface2 *reference_surface) PURE;
|
||||
/* added in v2 */
|
||||
STDMETHOD(GetDDInterface)(THIS_ LPVOID *lplpDD) PURE;
|
||||
STDMETHOD(PageLock)(THIS_ DWORD dwFlags) PURE;
|
||||
|
|
Loading…
Reference in New Issue