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
5f73f41f
Commit
5f73f41f
authored
Mar 10, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DVolume::GetDesc().
parent
2b18192e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
volume.c
dlls/d3d8/volume.c
+3
-1
volume.c
dlls/d3d9/volume.c
+3
-3
volume.c
dlls/wined3d/volume.c
+4
-6
wined3d.idl
include/wine/wined3d.idl
+1
-2
No files found.
dlls/d3d8/volume.c
View file @
5f73f41f
...
...
@@ -190,11 +190,13 @@ static HRESULT WINAPI IDirect3DVolume8Impl_GetDesc(IDirect3DVolume8 *iface, D3DV
{
IDirect3DVolume8Impl
*
This
=
impl_from_IDirect3DVolume8
(
iface
);
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DVolume_GetResource
(
This
->
wineD3DVolume
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
...
...
dlls/d3d9/volume.c
View file @
5f73f41f
...
...
@@ -180,13 +180,13 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetDesc(IDirect3DVolume9 *iface, D3DV
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d_resource
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3d_desc
);
wined3d_resource
=
IWineD3DVolume_GetResource
(
This
->
wineD3DVolume
);
wined3d_resource_get_desc
(
wined3d_resource
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
...
...
dlls/wined3d/volume.c
View file @
5f73f41f
...
...
@@ -220,13 +220,11 @@ static WINED3DRESOURCETYPE WINAPI IWineD3DVolumeImpl_GetType(IWineD3DVolume *ifa
return
resource_get_type
(
&
((
IWineD3DVolumeImpl
*
)
iface
)
->
resource
);
}
st
atic
void
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
struct
wined3d_resource_desc
*
desc
)
st
ruct
wined3d_resource
*
WINAPI
IWineD3DVolumeImpl_GetResource
(
IWineD3DVolume
*
iface
)
{
IWineD3DVolumeImpl
*
volume
=
(
IWineD3DVolumeImpl
*
)
iface
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_resource_get_desc
(
&
volume
->
resource
,
desc
)
;
return
&
((
IWineD3DVolumeImpl
*
)
iface
)
->
resource
;
}
static
HRESULT
WINAPI
IWineD3DVolumeImpl_Map
(
IWineD3DVolume
*
iface
,
...
...
@@ -309,7 +307,7 @@ static const IWineD3DVolumeVtbl IWineD3DVolume_Vtbl =
IWineD3DVolumeImpl_PreLoad
,
IWineD3DVolumeImpl_GetType
,
/* IWineD3DVolume */
IWineD3DVolumeImpl_Get
Desc
,
IWineD3DVolumeImpl_Get
Resource
,
IWineD3DVolumeImpl_Map
,
IWineD3DVolumeImpl_Unmap
,
};
...
...
include/wine/wined3d.idl
View file @
5f73f41f
...
...
@@ -2324,8 +2324,7 @@ interface IWineD3DSurface : IWineD3DResource
]
interface
IWineD3DVolume
:
IWineD3DResource
{
void
GetDesc
(
[
out
]
struct
wined3d_resource_desc
*
desc
struct
wined3d_resource
*
GetResource
(
)
;
HRESULT
Map
(
[
out
]
WINED3DLOCKED_BOX
*
locked_box
,
...
...
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