Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b9fae5e9
Commit
b9fae5e9
authored
Mar 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't require container parents for IWineD3DDeviceParent methods to be COM objects.
parent
aa420ced
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
48 deletions
+48
-48
device.c
dlls/d3d10core/device.c
+9
-9
device.c
dlls/d3d8/device.c
+13
-13
device.c
dlls/d3d9/device.c
+14
-14
ddraw.c
dlls/ddraw/ddraw.c
+9
-9
wined3d.idl
include/wine/wined3d.idl
+3
-3
No files found.
dlls/d3d10core/device.c
View file @
b9fae5e9
...
@@ -1320,7 +1320,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
...
@@ -1320,7 +1320,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
{
{
struct
d3d10_device
*
This
=
device_from_device_parent
(
iface
);
struct
d3d10_device
*
This
=
device_from_device_parent
(
iface
);
...
@@ -1328,9 +1328,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -1328,9 +1328,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
D3D10_TEXTURE2D_DESC
desc
;
D3D10_TEXTURE2D_DESC
desc
;
HRESULT
hr
;
HRESULT
hr
;
FIXME
(
"iface %p,
superior
%p, width %u, height %u, format %#x, usage %#x,
\n
"
FIXME
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, usage %#x,
\n
"
"
\t
pool %#x, level %u, face %u, surface %p partial stub!
\n
"
,
"
\t
pool %#x, level %u, face %u, surface %p partial stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
...
@@ -1361,7 +1361,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -1361,7 +1361,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
IWineD3DSurface
**
surface
)
IWineD3DSurface
**
surface
)
{
{
...
@@ -1370,9 +1370,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
...
@@ -1370,9 +1370,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
D3D10_TEXTURE2D_DESC
desc
;
D3D10_TEXTURE2D_DESC
desc
;
HRESULT
hr
;
HRESULT
hr
;
FIXME
(
"iface %p,
superior
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
FIXME
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u, lockable %u, surface %p partial stub!
\n
"
,
"
\t
multisample_quality %u, lockable %u, surface %p partial stub!
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
FIXME
(
"Implement DXGI<->wined3d usage conversion
\n
"
);
...
@@ -1444,13 +1444,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
...
@@ -1444,13 +1444,13 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
{
{
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p.
\n
"
,
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p.
\n
"
,
iface
,
superior
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
iface
,
container_parent
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
hr
=
IWineD3DDevice_CreateVolume
(
device_from_device_parent
(
iface
)
->
wined3d_device
,
hr
=
IWineD3DDevice_CreateVolume
(
device_from_device_parent
(
iface
)
->
wined3d_device
,
width
,
height
,
depth
,
usage
,
format
,
pool
,
NULL
,
&
d3d10_subresource_parent_ops
,
volume
);
width
,
height
,
depth
,
usage
,
format
,
pool
,
NULL
,
&
d3d10_subresource_parent_ops
,
volume
);
...
...
dlls/d3d8/device.c
View file @
b9fae5e9
...
@@ -2745,7 +2745,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
...
@@ -2745,7 +2745,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
{
{
IDirect3DDevice8Impl
*
This
=
impl_from_IWineD3DDeviceParent
(
iface
);
IDirect3DDevice8Impl
*
This
=
impl_from_IWineD3DDeviceParent
(
iface
);
...
@@ -2753,9 +2753,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -2753,9 +2753,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
BOOL
lockable
=
TRUE
;
BOOL
lockable
=
TRUE
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, usage %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, usage %#x,
\n
"
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
if
(
pool
==
WINED3DPOOL_DEFAULT
&&
!
(
usage
&
WINED3DUSAGE_DYNAMIC
))
lockable
=
FALSE
;
if
(
pool
==
WINED3DPOOL_DEFAULT
&&
!
(
usage
&
WINED3DUSAGE_DYNAMIC
))
lockable
=
FALSE
;
...
@@ -2772,18 +2772,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -2772,18 +2772,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
*
surface
=
d3d_surface
->
wineD3DSurface
;
*
surface
=
d3d_surface
->
wineD3DSurface
;
IWineD3DSurface_AddRef
(
*
surface
);
IWineD3DSurface_AddRef
(
*
surface
);
d3d_surface
->
container
=
superior
;
d3d_surface
->
container
=
container_parent
;
IUnknown_Release
(
d3d_surface
->
parentDevice
);
IUnknown_Release
(
d3d_surface
->
parentDevice
);
d3d_surface
->
parentDevice
=
NULL
;
d3d_surface
->
parentDevice
=
NULL
;
IDirect3DSurface8_Release
((
IDirect3DSurface8
*
)
d3d_surface
);
IDirect3DSurface8_Release
((
IDirect3DSurface8
*
)
d3d_surface
);
d3d_surface
->
forwardReference
=
superior
;
d3d_surface
->
forwardReference
=
container_parent
;
return
hr
;
return
hr
;
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
IWineD3DSurface
**
surface
)
IWineD3DSurface
**
surface
)
{
{
...
@@ -2791,9 +2791,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
...
@@ -2791,9 +2791,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
IDirect3DSurface8Impl
*
d3d_surface
;
IDirect3DSurface8Impl
*
d3d_surface
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
hr
=
IDirect3DDevice8_CreateRenderTarget
(
&
This
->
IDirect3DDevice8_iface
,
width
,
height
,
hr
=
IDirect3DDevice8_CreateRenderTarget
(
&
This
->
IDirect3DDevice8_iface
,
width
,
height
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
lockable
,
(
IDirect3DSurface8
**
)
&
d3d_surface
);
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
lockable
,
(
IDirect3DSurface8
**
)
&
d3d_surface
);
...
@@ -2844,15 +2844,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
...
@@ -2844,15 +2844,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
{
{
IDirect3DDevice8Impl
*
This
=
impl_from_IWineD3DDeviceParent
(
iface
);
IDirect3DDevice8Impl
*
This
=
impl_from_IWineD3DDeviceParent
(
iface
);
IDirect3DVolume8Impl
*
object
;
IDirect3DVolume8Impl
*
object
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
iface
,
superior
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
iface
,
container_parent
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
/* Allocate the storage for the device */
/* Allocate the storage for the device */
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
...
@@ -2875,8 +2875,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
...
@@ -2875,8 +2875,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
IWineD3DVolume_AddRef
(
*
volume
);
IWineD3DVolume_AddRef
(
*
volume
);
IDirect3DVolume8_Release
(
&
object
->
IDirect3DVolume8_iface
);
IDirect3DVolume8_Release
(
&
object
->
IDirect3DVolume8_iface
);
object
->
container
=
superior
;
object
->
container
=
container_parent
;
object
->
forwardReference
=
superior
;
object
->
forwardReference
=
container_parent
;
TRACE
(
"(%p) Created volume %p
\n
"
,
iface
,
object
);
TRACE
(
"(%p) Created volume %p
\n
"
,
iface
,
object
);
...
...
dlls/d3d9/device.c
View file @
b9fae5e9
...
@@ -3029,7 +3029,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
...
@@ -3029,7 +3029,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
{
{
struct
IDirect3DDevice9Impl
*
This
=
device_from_device_parent
(
iface
);
struct
IDirect3DDevice9Impl
*
This
=
device_from_device_parent
(
iface
);
...
@@ -3037,9 +3037,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -3037,9 +3037,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
BOOL
lockable
=
TRUE
;
BOOL
lockable
=
TRUE
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, usage %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, usage %#x,
\n
"
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
if
(
pool
==
WINED3DPOOL_DEFAULT
&&
!
(
usage
&
D3DUSAGE_DYNAMIC
))
if
(
pool
==
WINED3DPOOL_DEFAULT
&&
!
(
usage
&
D3DUSAGE_DYNAMIC
))
lockable
=
FALSE
;
lockable
=
FALSE
;
...
@@ -3056,18 +3056,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -3056,18 +3056,18 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
*
surface
=
d3d_surface
->
wineD3DSurface
;
*
surface
=
d3d_surface
->
wineD3DSurface
;
IWineD3DSurface_AddRef
(
*
surface
);
IWineD3DSurface_AddRef
(
*
surface
);
d3d_surface
->
container
=
superior
;
d3d_surface
->
container
=
container_parent
;
IDirect3DDevice9Ex_Release
(
d3d_surface
->
parentDevice
);
IDirect3DDevice9Ex_Release
(
d3d_surface
->
parentDevice
);
d3d_surface
->
parentDevice
=
NULL
;
d3d_surface
->
parentDevice
=
NULL
;
IDirect3DSurface9_Release
((
IDirect3DSurface9
*
)
d3d_surface
);
IDirect3DSurface9_Release
((
IDirect3DSurface9
*
)
d3d_surface
);
d3d_surface
->
forwardReference
=
superior
;
d3d_surface
->
forwardReference
=
container_parent
;
return
hr
;
return
hr
;
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
IWineD3DSurface
**
surface
)
IWineD3DSurface
**
surface
)
{
{
...
@@ -3075,9 +3075,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
...
@@ -3075,9 +3075,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
IDirect3DSurface9Impl
*
d3d_surface
;
IDirect3DSurface9Impl
*
d3d_surface
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
hr
=
IDirect3DDevice9Impl_CreateRenderTarget
((
IDirect3DDevice9Ex
*
)
This
,
width
,
height
,
hr
=
IDirect3DDevice9Impl_CreateRenderTarget
((
IDirect3DDevice9Ex
*
)
This
,
width
,
height
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
multisample_quality
,
lockable
,
d3dformat_from_wined3dformat
(
format
),
multisample_type
,
multisample_quality
,
lockable
,
...
@@ -3091,7 +3091,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
...
@@ -3091,7 +3091,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
*
surface
=
d3d_surface
->
wineD3DSurface
;
*
surface
=
d3d_surface
->
wineD3DSurface
;
IWineD3DSurface_AddRef
(
*
surface
);
IWineD3DSurface_AddRef
(
*
surface
);
d3d_surface
->
container
=
superior
;
d3d_surface
->
container
=
container_parent
;
/* Implicit surfaces are created with an refcount of 0 */
/* Implicit surfaces are created with an refcount of 0 */
IDirect3DSurface9_Release
((
IDirect3DSurface9
*
)
d3d_surface
);
IDirect3DSurface9_Release
((
IDirect3DSurface9
*
)
d3d_surface
);
...
@@ -3129,15 +3129,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
...
@@ -3129,15 +3129,15 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
{
{
struct
IDirect3DDevice9Impl
*
This
=
device_from_device_parent
(
iface
);
struct
IDirect3DDevice9Impl
*
This
=
device_from_device_parent
(
iface
);
IDirect3DVolume9Impl
*
object
;
IDirect3DVolume9Impl
*
object
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
iface
,
superior
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
iface
,
container_parent
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
/* Allocate the storage for the device */
/* Allocate the storage for the device */
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
...
@@ -3160,8 +3160,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
...
@@ -3160,8 +3160,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateVolume(IWineD3DDeviceParent
IWineD3DVolume_AddRef
(
*
volume
);
IWineD3DVolume_AddRef
(
*
volume
);
IDirect3DVolume9_Release
((
IDirect3DVolume9
*
)
object
);
IDirect3DVolume9_Release
((
IDirect3DVolume9
*
)
object
);
object
->
container
=
superior
;
object
->
container
=
container_parent
;
object
->
forwardReference
=
superior
;
object
->
forwardReference
=
container_parent
;
TRACE
(
"(%p) Created volume %p
\n
"
,
iface
,
object
);
TRACE
(
"(%p) Created volume %p
\n
"
,
iface
,
object
);
...
...
dlls/ddraw/ddraw.c
View file @
b9fae5e9
...
@@ -5724,7 +5724,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
...
@@ -5724,7 +5724,7 @@ static void STDMETHODCALLTYPE device_parent_WineD3DDeviceCreated(IWineD3DDeviceP
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateSurface
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
DWORD
usage
,
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
WINED3DPOOL
pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
face
,
IWineD3DSurface
**
surface
)
{
{
struct
IDirectDrawImpl
*
This
=
ddraw_from_device_parent
(
iface
);
struct
IDirectDrawImpl
*
This
=
ddraw_from_device_parent
(
iface
);
...
@@ -5732,9 +5732,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
...
@@ -5732,9 +5732,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
UINT
i
=
0
;
UINT
i
=
0
;
DDSCAPS2
searchcaps
=
This
->
tex_root
->
surface_desc
.
ddsCaps
;
DDSCAPS2
searchcaps
=
This
->
tex_root
->
surface_desc
.
ddsCaps
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, usage %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, usage %#x,
\n
"
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
"
\t
pool %#x, level %u, face %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
usage
,
pool
,
level
,
face
,
surface
);
searchcaps
.
dwCaps2
&=
~
DDSCAPS2_CUBEMAP_ALLFACES
;
searchcaps
.
dwCaps2
&=
~
DDSCAPS2_CUBEMAP_ALLFACES
;
switch
(
face
)
switch
(
face
)
...
@@ -5815,7 +5815,7 @@ static HRESULT WINAPI findRenderTarget(IDirectDrawSurface7 *surface, DDSURFACEDE
...
@@ -5815,7 +5815,7 @@ static HRESULT WINAPI findRenderTarget(IDirectDrawSurface7 *surface, DDSURFACEDE
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateRenderTarget
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
enum
wined3d_format_id
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
DWORD
multisample_quality
,
BOOL
lockable
,
IWineD3DSurface
**
surface
)
IWineD3DSurface
**
surface
)
{
{
...
@@ -5823,9 +5823,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
...
@@ -5823,9 +5823,9 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
IDirectDrawSurfaceImpl
*
d3d_surface
=
This
->
d3d_target
;
IDirectDrawSurfaceImpl
*
d3d_surface
=
This
->
d3d_target
;
IDirectDrawSurfaceImpl
*
target
=
NULL
;
IDirectDrawSurfaceImpl
*
target
=
NULL
;
TRACE
(
"iface %p,
superior
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, format %#x, multisample_type %#x,
\n
"
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
"
\t
multisample_quality %u, lockable %u, surface %p
\n
"
,
iface
,
superior
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
iface
,
container_parent
,
width
,
height
,
format
,
multisample_type
,
multisample_quality
,
lockable
,
surface
);
if
(
d3d_surface
->
isRenderTarget
)
if
(
d3d_surface
->
isRenderTarget
)
{
{
...
@@ -5903,11 +5903,11 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
...
@@ -5903,11 +5903,11 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
}
}
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
device_parent_CreateVolume
(
IWineD3DDeviceParent
*
iface
,
IUnknown
*
superior
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
void
*
container_parent
,
UINT
width
,
UINT
height
,
UINT
depth
,
enum
wined3d_format_id
format
,
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
WINED3DPOOL
pool
,
DWORD
usage
,
IWineD3DVolume
**
volume
)
{
{
TRACE
(
"iface %p,
superior
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
TRACE
(
"iface %p,
container_parent
%p, width %u, height %u, depth %u, format %#x, pool %#x, usage %#x, volume %p
\n
"
,
iface
,
superior
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
iface
,
container_parent
,
width
,
height
,
depth
,
format
,
pool
,
usage
,
volume
);
ERR
(
"Not implemented!
\n
"
);
ERR
(
"Not implemented!
\n
"
);
...
...
include/wine/wined3d.idl
View file @
b9fae5e9
...
@@ -2130,7 +2130,7 @@ interface IWineD3DDeviceParent : IUnknown
...
@@ -2130,7 +2130,7 @@ interface IWineD3DDeviceParent : IUnknown
)
;
)
;
HRESULT
CreateSurface
(
HRESULT
CreateSurface
(
[
in
]
IUnknown
*
superior
,
[
in
]
void
*
container_parent
,
[
in
]
UINT
width
,
[
in
]
UINT
width
,
[
in
]
UINT
height
,
[
in
]
UINT
height
,
[
in
]
enum
wined3d_format_id
format_id
,
[
in
]
enum
wined3d_format_id
format_id
,
...
@@ -2142,7 +2142,7 @@ interface IWineD3DDeviceParent : IUnknown
...
@@ -2142,7 +2142,7 @@ interface IWineD3DDeviceParent : IUnknown
)
;
)
;
HRESULT
CreateRenderTarget
(
HRESULT
CreateRenderTarget
(
[
in
]
IUnknown
*
superior
,
[
in
]
void
*
container_parent
,
[
in
]
UINT
width
,
[
in
]
UINT
width
,
[
in
]
UINT
height
,
[
in
]
UINT
height
,
[
in
]
enum
wined3d_format_id
format_id
,
[
in
]
enum
wined3d_format_id
format_id
,
...
@@ -2163,7 +2163,7 @@ interface IWineD3DDeviceParent : IUnknown
...
@@ -2163,7 +2163,7 @@ interface IWineD3DDeviceParent : IUnknown
)
;
)
;
HRESULT
CreateVolume
(
HRESULT
CreateVolume
(
[
in
]
IUnknown
*
superior
,
[
in
]
void
*
container_parent
,
[
in
]
UINT
width
,
[
in
]
UINT
width
,
[
in
]
UINT
height
,
[
in
]
UINT
height
,
[
in
]
UINT
depth
,
[
in
]
UINT
depth
,
...
...
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