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
5c4a1fc8
Commit
5c4a1fc8
authored
May 19, 2006
by
Peter Beutner
Committed by
Alexandre Julliard
May 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fix GetDesc and GetLevelDesc for surfaces and textures.
In DX8 the D3DSURFACE_DESC structure has a size field which needs to be set.
parent
4a1375bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
12 deletions
+8
-12
cubetexture.c
dlls/d3d8/cubetexture.c
+2
-3
surface.c
dlls/d3d8/surface.c
+2
-3
texture.c
dlls/d3d8/texture.c
+2
-3
volume.c
dlls/d3d8/volume.c
+2
-3
No files found.
dlls/d3d8/cubetexture.c
View file @
5c4a1fc8
...
...
@@ -134,16 +134,15 @@ DWORD WINAPI IDirect3DCubeTexture8Impl_GetLevelCount(LPDIRECT3DCUBETEXTURE8 ifac
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetLevelDesc
(
LPDIRECT3DCUBETEXTURE8
iface
,
UINT
Level
,
D3DSURFACE_DESC
*
pDesc
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
UINT
tmpInt
=
-
1
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* As d3d8 and d3d
8
structures differ, pass in ptrs to where data needs to go */
/* As d3d8 and d3d
9
structures differ, pass in ptrs to where data needs to go */
wined3ddesc
.
Format
=
(
WINED3DFORMAT
*
)
&
pDesc
->
Format
;
wined3ddesc
.
Type
=
(
WINED3DRESOURCETYPE
*
)
&
pDesc
->
Type
;
wined3ddesc
.
Usage
=
&
pDesc
->
Usage
;
wined3ddesc
.
Pool
=
(
WINED3DPOOL
*
)
&
pDesc
->
Pool
;
wined3ddesc
.
Size
=
&
tmpInt
;
wined3ddesc
.
Size
=
&
pDesc
->
Size
;
wined3ddesc
.
MultiSampleType
=
(
WINED3DMULTISAMPLE_TYPE
*
)
&
pDesc
->
MultiSampleType
;
wined3ddesc
.
MultiSampleQuality
=
NULL
;
/* DirectX9 only */
wined3ddesc
.
Width
=
&
pDesc
->
Width
;
...
...
dlls/d3d8/surface.c
View file @
5c4a1fc8
...
...
@@ -156,16 +156,15 @@ HRESULT WINAPI IDirect3DSurface8Impl_GetContainer(LPDIRECT3DSURFACE8 iface, REFI
HRESULT
WINAPI
IDirect3DSurface8Impl_GetDesc
(
LPDIRECT3DSURFACE8
iface
,
D3DSURFACE_DESC
*
pDesc
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
UINT
tmpInt
=
-
1
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* As d3d8 and d3d
8
structures differ, pass in ptrs to where data needs to go */
/* As d3d8 and d3d
9
structures differ, pass in ptrs to where data needs to go */
memset
(
&
wined3ddesc
,
0
,
sizeof
(
wined3ddesc
));
wined3ddesc
.
Format
=
(
WINED3DFORMAT
*
)
&
pDesc
->
Format
;
wined3ddesc
.
Type
=
(
WINED3DRESOURCETYPE
*
)
&
pDesc
->
Type
;
wined3ddesc
.
Usage
=
&
pDesc
->
Usage
;
wined3ddesc
.
Pool
=
(
WINED3DPOOL
*
)
&
pDesc
->
Pool
;
wined3ddesc
.
Size
=
&
tmpInt
;
wined3ddesc
.
Size
=
&
pDesc
->
Size
;
wined3ddesc
.
MultiSampleType
=
(
WINED3DMULTISAMPLE_TYPE
*
)
&
pDesc
->
MultiSampleType
;
wined3ddesc
.
Width
=
&
pDesc
->
Width
;
wined3ddesc
.
Height
=
&
pDesc
->
Height
;
...
...
dlls/d3d8/texture.c
View file @
5c4a1fc8
...
...
@@ -135,16 +135,15 @@ HRESULT WINAPI IDirect3DTexture8Impl_GetLevelDesc(LPDIRECT3DTEXTURE8 iface, UINT
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
UINT
tmpInt
=
-
1
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* As d3d8 and d3d
8
structures differ, pass in ptrs to where data needs to go */
/* As d3d8 and d3d
9
structures differ, pass in ptrs to where data needs to go */
memset
(
&
wined3ddesc
,
0
,
sizeof
(
wined3ddesc
));
wined3ddesc
.
Format
=
(
WINED3DFORMAT
*
)
&
pDesc
->
Format
;
wined3ddesc
.
Type
=
(
WINED3DRESOURCETYPE
*
)
&
pDesc
->
Type
;
wined3ddesc
.
Usage
=
&
pDesc
->
Usage
;
wined3ddesc
.
Pool
=
(
WINED3DPOOL
*
)
&
pDesc
->
Pool
;
wined3ddesc
.
Size
=
&
tmpInt
;
/* required for d3d8 */
wined3ddesc
.
Size
=
&
pDesc
->
Size
;
wined3ddesc
.
MultiSampleType
=
(
WINED3DMULTISAMPLE_TYPE
*
)
&
pDesc
->
MultiSampleType
;
wined3ddesc
.
Width
=
&
pDesc
->
Width
;
wined3ddesc
.
Height
=
&
pDesc
->
Height
;
...
...
dlls/d3d8/volume.c
View file @
5c4a1fc8
...
...
@@ -132,16 +132,15 @@ HRESULT WINAPI IDirect3DVolume8Impl_GetContainer(LPDIRECT3DVOLUME8 iface, REFIID
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDesc
(
LPDIRECT3DVOLUME8
iface
,
D3DVOLUME_DESC
*
pDesc
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
WINED3DVOLUME_DESC
wined3ddesc
;
UINT
tmpInt
=
-
1
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* As d3d8 and d3d
8
structures differ, pass in ptrs to where data needs to go */
/* As d3d8 and d3d
9
structures differ, pass in ptrs to where data needs to go */
wined3ddesc
.
Format
=
(
WINED3DFORMAT
*
)
&
pDesc
->
Format
;
wined3ddesc
.
Type
=
(
WINED3DRESOURCETYPE
*
)
&
pDesc
->
Type
;
wined3ddesc
.
Usage
=
&
pDesc
->
Usage
;
wined3ddesc
.
Pool
=
(
WINED3DPOOL
*
)
&
pDesc
->
Pool
;
wined3ddesc
.
Size
=
&
tmpInt
;
wined3ddesc
.
Size
=
&
pDesc
->
Size
;
wined3ddesc
.
Width
=
&
pDesc
->
Width
;
wined3ddesc
.
Height
=
&
pDesc
->
Height
;
wined3ddesc
.
Depth
=
&
pDesc
->
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