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
955858e9
Commit
955858e9
authored
Sep 08, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: IWineD3DVolume_GetDesc() should never fail.
parent
53183b4c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
34 deletions
+26
-34
volume.c
dlls/d3d8/volume.c
+11
-15
volume.c
dlls/d3d9/volume.c
+10
-14
volume.c
dlls/wined3d/volume.c
+1
-3
volumetexture.c
dlls/wined3d/volumetexture.c
+3
-1
wined3d.idl
include/wine/wined3d.idl
+1
-1
No files found.
dlls/d3d8/volume.c
View file @
955858e9
...
...
@@ -177,28 +177,24 @@ static HRESULT WINAPI IDirect3DVolume8Impl_GetContainer(LPDIRECT3DVOLUME8 iface,
static
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDesc
(
LPDIRECT3DVOLUME8
iface
,
D3DVOLUME_DESC
*
pDesc
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
HRESULT
hr
;
WINED3DVOLUME_DESC
wined3ddesc
;
WINED3DVOLUME_DESC
wined3ddesc
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
pDesc
);
wined3d_mutex_lock
();
hr
=
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3ddesc
);
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3ddesc
);
wined3d_mutex_unlock
();
if
(
SUCCEEDED
(
hr
))
{
pDesc
->
Format
=
d3dformat_from_wined3dformat
(
wined3ddesc
.
Format
);
pDesc
->
Type
=
wined3ddesc
.
Type
;
pDesc
->
Usage
=
wined3ddesc
.
Usage
;
pDesc
->
Pool
=
wined3ddesc
.
Pool
;
pDesc
->
Size
=
wined3ddesc
.
Size
;
pDesc
->
Width
=
wined3ddesc
.
Width
;
pDesc
->
Height
=
wined3ddesc
.
Height
;
pDesc
->
Depth
=
wined3ddesc
.
Depth
;
}
pDesc
->
Format
=
d3dformat_from_wined3dformat
(
wined3ddesc
.
Format
);
pDesc
->
Type
=
wined3ddesc
.
Type
;
pDesc
->
Usage
=
wined3ddesc
.
Usage
;
pDesc
->
Pool
=
wined3ddesc
.
Pool
;
pDesc
->
Size
=
wined3ddesc
.
Size
;
pDesc
->
Width
=
wined3ddesc
.
Width
;
pDesc
->
Height
=
wined3ddesc
.
Height
;
pDesc
->
Depth
=
wined3ddesc
.
Depth
;
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
IDirect3DVolume8Impl_LockBox
(
LPDIRECT3DVOLUME8
iface
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
...
...
dlls/d3d9/volume.c
View file @
955858e9
...
...
@@ -182,29 +182,25 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetContainer(LPDIRECT3DVOLUME9 iface,
static
HRESULT
WINAPI
IDirect3DVolume9Impl_GetDesc
(
LPDIRECT3DVOLUME9
iface
,
D3DVOLUME_DESC
*
pDesc
)
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
WINED3DVOLUME_DESC
wined3ddesc
;
HRESULT
hr
;
WINED3DVOLUME_DESC
wined3ddesc
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
pDesc
);
wined3d_mutex_lock
();
hr
=
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3ddesc
);
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3ddesc
);
wined3d_mutex_unlock
();
if
(
SUCCEEDED
(
hr
))
{
pDesc
->
Format
=
d3dformat_from_wined3dformat
(
wined3ddesc
.
Format
);
pDesc
->
Type
=
wined3ddesc
.
Type
;
pDesc
->
Usage
=
wined3ddesc
.
Usage
;
pDesc
->
Pool
=
wined3ddesc
.
Pool
;
pDesc
->
Width
=
wined3ddesc
.
Width
;
pDesc
->
Height
=
wined3ddesc
.
Height
;
pDesc
->
Depth
=
wined3ddesc
.
Depth
;
}
pDesc
->
Format
=
d3dformat_from_wined3dformat
(
wined3ddesc
.
Format
);
pDesc
->
Type
=
wined3ddesc
.
Type
;
pDesc
->
Usage
=
wined3ddesc
.
Usage
;
pDesc
->
Pool
=
wined3ddesc
.
Pool
;
pDesc
->
Width
=
wined3ddesc
.
Width
;
pDesc
->
Height
=
wined3ddesc
.
Height
;
pDesc
->
Depth
=
wined3ddesc
.
Depth
;
return
hr
;
return
D3D_OK
;
}
static
HRESULT
WINAPI
IDirect3DVolume9Impl_LockBox
(
LPDIRECT3DVOLUME9
iface
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
...
...
dlls/wined3d/volume.c
View file @
955858e9
...
...
@@ -187,7 +187,7 @@ static WINED3DRESOURCETYPE WINAPI IWineD3DVolumeImpl_GetType(IWineD3DVolume *ifa
return
resource_get_type
((
IWineD3DResource
*
)
iface
);
}
static
HRESULT
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
WINED3DVOLUME_DESC
*
desc
)
static
void
WINAPI
IWineD3DVolumeImpl_GetDesc
(
IWineD3DVolume
*
iface
,
WINED3DVOLUME_DESC
*
desc
)
{
IWineD3DVolumeImpl
*
volume
=
(
IWineD3DVolumeImpl
*
)
iface
;
...
...
@@ -201,8 +201,6 @@ static HRESULT WINAPI IWineD3DVolumeImpl_GetDesc(IWineD3DVolume *iface, WINED3DV
desc
->
Width
=
volume
->
currentDesc
.
Width
;
desc
->
Height
=
volume
->
currentDesc
.
Height
;
desc
->
Depth
=
volume
->
currentDesc
.
Depth
;
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DVolumeImpl_LockBox
(
IWineD3DVolume
*
iface
,
WINED3DLOCKED_BOX
*
pLockedVolume
,
CONST
WINED3DBOX
*
pBox
,
DWORD
Flags
)
{
...
...
dlls/wined3d/volumetexture.c
View file @
955858e9
...
...
@@ -273,7 +273,9 @@ static HRESULT WINAPI IWineD3DVolumeTextureImpl_GetLevelDesc(IWineD3DVolumeTextu
return
WINED3DERR_INVALIDCALL
;
}
return
IWineD3DVolume_GetDesc
(
volume
,
desc
);
IWineD3DVolume_GetDesc
(
volume
,
desc
);
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetVolumeLevel
(
IWineD3DVolumeTexture
*
iface
,
...
...
include/wine/wined3d.idl
View file @
955858e9
...
...
@@ -2486,7 +2486,7 @@ interface IWineD3DSurface : IWineD3DResource
]
interface
IWineD3DVolume
:
IWineD3DResource
{
HRESULT
GetDesc
(
void
GetDesc
(
[
out
]
WINED3DVOLUME_DESC
*
desc
)
;
HRESULT
LockBox
(
...
...
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