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
d80dc792
Commit
d80dc792
authored
Dec 18, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Dec 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Handle volume container in d3d9.
parent
467b1dd3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
d3d9_private.h
dlls/d3d9/d3d9_private.h
+3
-0
volume.c
dlls/d3d9/volume.c
+4
-21
No files found.
dlls/d3d9/d3d9_private.h
View file @
d80dc792
...
@@ -239,6 +239,9 @@ typedef struct IDirect3DVolume9Impl
...
@@ -239,6 +239,9 @@ typedef struct IDirect3DVolume9Impl
/* IDirect3DVolume9 fields */
/* IDirect3DVolume9 fields */
IWineD3DVolume
*
wineD3DVolume
;
IWineD3DVolume
*
wineD3DVolume
;
/* The volume container */
IUnknown
*
container
;
/* If set forward refcounting to this object */
/* If set forward refcounting to this object */
IUnknown
*
forwardReference
;
IUnknown
*
forwardReference
;
}
IDirect3DVolume9Impl
;
}
IDirect3DVolume9Impl
;
...
...
dlls/d3d9/volume.c
View file @
d80dc792
...
@@ -111,35 +111,17 @@ static HRESULT WINAPI IDirect3DVolume9Impl_FreePrivateData(LPDIRECT3DVOLUME9 ifa
...
@@ -111,35 +111,17 @@ static HRESULT WINAPI IDirect3DVolume9Impl_FreePrivateData(LPDIRECT3DVOLUME9 ifa
static
HRESULT
WINAPI
IDirect3DVolume9Impl_GetContainer
(
LPDIRECT3DVOLUME9
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
static
HRESULT
WINAPI
IDirect3DVolume9Impl_GetContainer
(
LPDIRECT3DVOLUME9
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
IDirect3DVolume9Impl
*
This
=
(
IDirect3DVolume9Impl
*
)
iface
;
IWineD3DBase
*
wineD3DContainer
=
NULL
;
IUnknown
*
wineD3DContainerParent
=
NULL
;
HRESULT
res
;
HRESULT
res
;
TRACE
(
"(This %p, riid %s, ppContainer %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppContainer
);
TRACE
(
"(This %p, riid %s, ppContainer %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppContainer
);
if
(
!
This
->
container
)
return
E_NOINTERFACE
;
if
(
!
ppContainer
)
{
if
(
!
ppContainer
)
{
ERR
(
"Called without a valid ppContainer.
\n
"
);
ERR
(
"Called without a valid ppContainer.
\n
"
);
}
}
/* Get the WineD3D container. */
res
=
IUnknown_QueryInterface
(
This
->
container
,
riid
,
ppContainer
);
res
=
IWineD3DVolume_GetContainer
(
This
->
wineD3DVolume
,
&
IID_IWineD3DBase
,
(
void
**
)
&
wineD3DContainer
);
if
(
res
!=
D3D_OK
)
return
res
;
if
(
!
wineD3DContainer
)
{
ERR
(
"IWineD3DSurface_GetContainer should never return NULL
\n
"
);
}
/* Get the parent */
IWineD3DBase_GetParent
(
wineD3DContainer
,
&
wineD3DContainerParent
);
IUnknown_Release
(
wineD3DContainer
);
if
(
!
wineD3DContainerParent
)
{
ERR
(
"IWineD3DBase_GetParent should never return NULL
\n
"
);
}
/* Now, query the interface of the parent for the riid */
res
=
IUnknown_QueryInterface
(
wineD3DContainerParent
,
riid
,
ppContainer
);
IUnknown_Release
(
wineD3DContainerParent
);
TRACE
(
"Returning ppContainer %p, *ppContainer %p
\n
"
,
ppContainer
,
*
ppContainer
);
TRACE
(
"Returning ppContainer %p, *ppContainer %p
\n
"
,
ppContainer
,
*
ppContainer
);
...
@@ -224,6 +206,7 @@ HRESULT WINAPI D3D9CB_CreateVolume(IUnknown *pDevice, IUnknown *pSuperior, UINT
...
@@ -224,6 +206,7 @@ HRESULT WINAPI D3D9CB_CreateVolume(IUnknown *pDevice, IUnknown *pSuperior, UINT
*
ppVolume
=
NULL
;
*
ppVolume
=
NULL
;
}
else
{
}
else
{
*
ppVolume
=
(
IWineD3DVolume
*
)
object
->
wineD3DVolume
;
*
ppVolume
=
(
IWineD3DVolume
*
)
object
->
wineD3DVolume
;
object
->
container
=
pSuperior
;
object
->
forwardReference
=
pSuperior
;
object
->
forwardReference
=
pSuperior
;
}
}
TRACE
(
"(%p) Created volume %p
\n
"
,
This
,
*
ppVolume
);
TRACE
(
"(%p) Created volume %p
\n
"
,
This
,
*
ppVolume
);
...
...
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