Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cb74603e
Commit
cb74603e
authored
Jan 12, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Implement IDirect3DDevice9::StretchRect.
parent
3d2baaa6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
device.c
dlls/d3d9/device.c
+6
-2
directx.c
dlls/d3d9/directx.c
+3
-0
device.c
dlls/wined3d/device.c
+0
-9
wined3d_interface.h
include/wine/wined3d_interface.h
+0
-2
No files found.
dlls/d3d9/device.c
View file @
cb74603e
...
@@ -357,8 +357,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetFrontBufferData(LPDIRECT3DDEVICE
...
@@ -357,8 +357,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetFrontBufferData(LPDIRECT3DDEVICE
static
HRESULT
WINAPI
IDirect3DDevice9Impl_StretchRect
(
LPDIRECT3DDEVICE9
iface
,
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
{
static
HRESULT
WINAPI
IDirect3DDevice9Impl_StretchRect
(
LPDIRECT3DDEVICE9
iface
,
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
{
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
IDirect3DSurface9Impl
*
src
=
(
IDirect3DSurface9Impl
*
)
pSourceSurface
;
return
IWineD3DDevice_StretchRect
(
This
->
WineD3DDevice
,
((
IDirect3DSurface9Impl
*
)
pSourceSurface
)
->
wineD3DSurface
,
pSourceRect
,
((
IDirect3DSurface9Impl
*
)
pDestSurface
)
->
wineD3DSurface
,
pDestRect
,
(
WINED3DTEXTUREFILTERTYPE
)
Filter
);
IDirect3DSurface9Impl
*
dst
=
(
IDirect3DSurface9Impl
*
)
pDestSurface
;
TRACE
(
"(%p)->(%p,%p,%p,%p,%d)
\n
"
,
This
,
src
,
pSourceRect
,
dst
,
pDestRect
,
Filter
);
if
(
Filter
!=
D3DTEXF_NONE
)
ERR
(
"Texture filters not supported yet
\n
"
);
return
IWineD3DSurface_Blt
(
dst
->
wineD3DSurface
,
(
RECT
*
)
pDestRect
,
src
->
wineD3DSurface
,
(
RECT
*
)
pSourceRect
,
0
,
NULL
);
}
}
static
HRESULT
WINAPI
IDirect3DDevice9Impl_ColorFill
(
LPDIRECT3DDEVICE9
iface
,
IDirect3DSurface9
*
pSurface
,
CONST
RECT
*
pRect
,
D3DCOLOR
color
)
{
static
HRESULT
WINAPI
IDirect3DDevice9Impl_ColorFill
(
LPDIRECT3DDEVICE9
iface
,
IDirect3DSurface9
*
pSurface
,
CONST
RECT
*
pRect
,
D3DCOLOR
color
)
{
...
...
dlls/d3d9/directx.c
View file @
cb74603e
...
@@ -170,6 +170,9 @@ static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(LPDIRECT3D9 iface, UINT Adapt
...
@@ -170,6 +170,9 @@ static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(LPDIRECT3D9 iface, UINT Adapt
D3D9CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
D3D9CAPSTOWINECAPS
(
pCaps
,
pWineCaps
)
hrc
=
IWineD3D_GetDeviceCaps
(
This
->
WineD3D
,
Adapter
,
DeviceType
,
pWineCaps
);
hrc
=
IWineD3D_GetDeviceCaps
(
This
->
WineD3D
,
Adapter
,
DeviceType
,
pWineCaps
);
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
HeapFree
(
GetProcessHeap
(),
0
,
pWineCaps
);
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
pCaps
->
Caps2
|=
D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES
;
TRACE
(
"(%p) returning %p
\n
"
,
This
,
pCaps
);
TRACE
(
"(%p) returning %p
\n
"
,
This
,
pCaps
);
return
hrc
;
return
hrc
;
}
}
...
...
dlls/wined3d/device.c
View file @
cb74603e
...
@@ -4930,14 +4930,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, I
...
@@ -4930,14 +4930,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, I
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_StretchRect
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pDestRect
,
WINED3DTEXTUREFILTERTYPE
Filter
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
TRACE
(
"(%p) : stub
\n
"
,
This
);
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTargetData
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pRenderTarget
,
IWineD3DSurface
*
pSurface
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetRenderTargetData
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
pRenderTarget
,
IWineD3DSurface
*
pSurface
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
/** TODO: remove remove casts to IWineD3DSurfaceImpl *
/** TODO: remove remove casts to IWineD3DSurfaceImpl *
...
@@ -6776,7 +6768,6 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
...
@@ -6776,7 +6768,6 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_ColorFill
,
IWineD3DDeviceImpl_ColorFill
,
IWineD3DDeviceImpl_UpdateTexture
,
IWineD3DDeviceImpl_UpdateTexture
,
IWineD3DDeviceImpl_UpdateSurface
,
IWineD3DDeviceImpl_UpdateSurface
,
IWineD3DDeviceImpl_StretchRect
,
IWineD3DDeviceImpl_GetRenderTargetData
,
IWineD3DDeviceImpl_GetRenderTargetData
,
IWineD3DDeviceImpl_GetFrontBufferData
,
IWineD3DDeviceImpl_GetFrontBufferData
,
/*** object tracking ***/
/*** object tracking ***/
...
...
include/wine/wined3d_interface.h
View file @
cb74603e
...
@@ -469,7 +469,6 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
...
@@ -469,7 +469,6 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
ColorFill
)(
THIS_
struct
IWineD3DSurface
*
pSurface
,
CONST
WINED3DRECT
*
pRect
,
WINED3DCOLOR
color
)
PURE
;
STDMETHOD
(
ColorFill
)(
THIS_
struct
IWineD3DSurface
*
pSurface
,
CONST
WINED3DRECT
*
pRect
,
WINED3DCOLOR
color
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
struct
IWineD3DBaseTexture
*
pSourceTexture
,
struct
IWineD3DBaseTexture
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
struct
IWineD3DBaseTexture
*
pSourceTexture
,
struct
IWineD3DBaseTexture
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
UpdateSurface
)(
THIS_
struct
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
struct
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
PURE
;
STDMETHOD
(
UpdateSurface
)(
THIS_
struct
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
struct
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
PURE
;
STDMETHOD
(
StretchRect
)(
THIS_
struct
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
struct
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pDestRect
,
WINED3DTEXTUREFILTERTYPE
Filter
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
struct
IWineD3DSurface
*
pRenderTarget
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
struct
IWineD3DSurface
*
pRenderTarget
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
/*** object tracking ***/
/*** object tracking ***/
...
@@ -608,7 +607,6 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
...
@@ -608,7 +607,6 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
#define IWineD3DDevice_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
#define IWineD3DDevice_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
#define IWineD3DDevice_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IWineD3DDevice_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IWineD3DDevice_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
#define IWineD3DDevice_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
#define IWineD3DDevice_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
#define IWineD3DDevice_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
#define IWineD3DDevice_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
#define IWineD3DDevice_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
#define IWineD3DDevice_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
#define IWineD3DDevice_ResourceReleased(p,a) (p)->lpVtbl->ResourceReleased(p,a)
#define IWineD3DDevice_ResourceReleased(p,a) (p)->lpVtbl->ResourceReleased(p,a)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment