Commit ffc8e46e authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Add IWineD3DSurface::Blt.

parent 02bf3558
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
#include "wingdi.h" #include "wingdi.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "d3d8.h" #include "d3d8.h"
#include "ddraw.h"
#include "wine/wined3d_interface.h" #include "wine/wined3d_interface.h"
/* Device caps */ /* Device caps */
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
#include "gdi.h" #include "gdi.h"
#include "d3d9.h" #include "d3d9.h"
#include "d3d9_private.h" #include "ddraw.h"
#include "wine/wined3d_interface.h" #include "wine/wined3d_interface.h"
/* =========================================================================== /* ===========================================================================
......
...@@ -1450,6 +1450,11 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DSurface ...@@ -1450,6 +1450,11 @@ HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DSurface
return WINED3DERR_INVALIDCALL; return WINED3DERR_INVALIDCALL;
} }
HRESULT WINAPI IWineD3DSurfaceImpl_Blt(IWineD3DSurface *iface, RECT *DestRect, IWineD3DSurface *SrcSurface, RECT *SrcRect, DWORD Flags, DDBLTFX *DDBltFx) {
FIXME("This is unimplemented for now(d3d7 merge)\n");
return WINED3DERR_INVALIDCALL;
}
const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
{ {
/* IUnknown */ /* IUnknown */
...@@ -1475,6 +1480,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl = ...@@ -1475,6 +1480,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DSurfaceImpl_GetDC, IWineD3DSurfaceImpl_GetDC,
IWineD3DSurfaceImpl_ReleaseDC, IWineD3DSurfaceImpl_ReleaseDC,
IWineD3DSurfaceImpl_Flip, IWineD3DSurfaceImpl_Flip,
IWineD3DSurfaceImpl_Blt,
/* Internal use: */ /* Internal use: */
IWineD3DSurfaceImpl_CleanDirtyRect, IWineD3DSurfaceImpl_CleanDirtyRect,
IWineD3DSurfaceImpl_AddDirtyRect, IWineD3DSurfaceImpl_AddDirtyRect,
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "d3d9.h" #include "d3d9.h"
#include "d3d9types.h" #include "d3d9types.h"
#include "ddraw.h"
#include "wine/wined3d_interface.h" #include "wine/wined3d_interface.h"
#include "wine/wined3d_gl.h" #include "wine/wined3d_gl.h"
......
...@@ -31,6 +31,10 @@ ...@@ -31,6 +31,10 @@
# error You must include d3d.h, d3d8.h or d3d9.h header to use this header # error You must include d3d.h, d3d8.h or d3d9.h header to use this header
#endif #endif
#if !defined( __WINE_DDRAW_H)
#error You must include ddraw.h to use this header
#endif
#include "wined3d_types.h" #include "wined3d_types.h"
/***************************************************************** /*****************************************************************
* THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES * THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES
...@@ -1107,6 +1111,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource) ...@@ -1107,6 +1111,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
STDMETHOD(GetDC)(THIS_ HDC *pHdc) PURE; STDMETHOD(GetDC)(THIS_ HDC *pHdc) PURE;
STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE; STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
STDMETHOD(Flip)(THIS_ IWineD3DSurface *Override, DWORD FLAGS) PURE; STDMETHOD(Flip)(THIS_ IWineD3DSurface *Override, DWORD FLAGS) PURE;
STDMETHOD(Blt)(THIS_ RECT *DestRect, IWineD3DSurface *SrcSurface, RECT *SrcRect, DWORD Flags, DDBLTFX *DDBltFx) PURE;
/* Internally used methods */ /* Internally used methods */
STDMETHOD(CleanDirtyRect)(THIS) PURE; STDMETHOD(CleanDirtyRect)(THIS) PURE;
STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE; STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE;
...@@ -1146,6 +1151,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource) ...@@ -1146,6 +1151,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
#define IWineD3DSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a) #define IWineD3DSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
#define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) #define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
#define IWineD3DSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) #define IWineD3DSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
#define IWineD3DSurface_Blt(p,a,b,c,d,e) (p)->lpVtbl->Blt(p,a,b,c,d,e)
/*** IWineD3DSurface (Internal, no d3d mapping) methods ***/ /*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
#define IWineD3DSurface_CleanDirtyRect(p) (p)->lpVtbl->CleanDirtyRect(p) #define IWineD3DSurface_CleanDirtyRect(p) (p)->lpVtbl->CleanDirtyRect(p)
#define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a) #define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment