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
61087377
Commit
61087377
authored
Dec 01, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Dec 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use correct COM macros.
parent
3127eac2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
device.c
dlls/d3d9/device.c
+8
-8
vertexdeclaration.c
dlls/d3d9/vertexdeclaration.c
+2
-2
No files found.
dlls/d3d9/device.c
View file @
61087377
...
...
@@ -100,8 +100,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetDirect3D(LPDIRECT3DDEVICE9 iface, IDire
hr
=
IWineD3DDevice_GetDirect3D
(
This
->
WineD3DDevice
,
&
pWineD3D
);
if
(
hr
==
D3D_OK
&&
pWineD3D
!=
NULL
)
{
IWineD3D
Resource_GetParent
((
IWineD3DResource
*
)
pWineD3D
,(
IUnknown
**
)
ppD3D9
);
IWineD3D
Resource_Release
((
IWineD3DResource
*
)
pWineD3D
);
IWineD3D
_GetParent
(
pWineD3D
,(
IUnknown
**
)
ppD3D9
);
IWineD3D
_Release
(
pWineD3D
);
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetDirect3D failed
\n
"
);
*
ppD3D9
=
NULL
;
...
...
@@ -404,8 +404,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetRenderTarget(LPDIRECT3DDEVICE9 i
hr
=
IWineD3DDevice_GetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
&
pRenderTarget
);
if
(
hr
==
D3D_OK
&&
pRenderTarget
!=
NULL
)
{
IWineD3D
Resource_GetParent
((
IWineD3DResource
*
)
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3D
Resource_Release
((
IWineD3DResource
*
)
pRenderTarget
);
IWineD3D
Surface_GetParent
(
pRenderTarget
,(
IUnknown
**
)
ppRenderTarget
);
IWineD3D
Surface_Release
(
pRenderTarget
);
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
*
ppRenderTarget
=
NULL
;
...
...
@@ -435,8 +435,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDepthStencilSurface(LPDIRECT3DDE
hr
=
IWineD3DDevice_GetDepthStencilSurface
(
This
->
WineD3DDevice
,
&
pZStencilSurface
);
if
(
hr
==
D3D_OK
&&
pZStencilSurface
!=
NULL
){
IWineD3D
Resource_GetParent
((
IWineD3DResource
*
)
pZStencilSurface
,(
IUnknown
**
)
ppZStencilSurface
);
IWineD3D
Resource_Release
((
IWineD3DResource
*
)
pZStencilSurface
);
IWineD3D
Surface_GetParent
(
pZStencilSurface
,(
IUnknown
**
)
ppZStencilSurface
);
IWineD3D
Surface_Release
(
pZStencilSurface
);
}
else
{
FIXME
(
"Call to IWineD3DDevice_GetRenderTarget failed
\n
"
);
*
ppZStencilSurface
=
NULL
;
...
...
@@ -838,8 +838,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
rc
=
IWineD3DDevice_GetIndices
(
This
->
WineD3DDevice
,
&
retIndexData
,
&
tmp
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retIndexData
)
{
IWineD3D
Vert
exBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3D
Vert
exBuffer_Release
(
retIndexData
);
IWineD3D
Ind
exBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3D
Ind
exBuffer_Release
(
retIndexData
);
}
else
{
if
(
rc
!=
D3D_OK
)
FIXME
(
"Call to GetIndices failed
\n
"
);
*
ppIndexData
=
NULL
;
...
...
dlls/d3d9/vertexdeclaration.c
View file @
61087377
...
...
@@ -321,8 +321,8 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetVertexDeclaration(LPDIRECT3DDEVICE9 ifa
*
ppDecl
=
NULL
;
hr
=
IWineD3DDevice_GetVertexDeclaration
(
This
->
WineD3DDevice
,
&
pTest
);
if
(
hr
==
D3D_OK
&&
NULL
!=
pTest
)
{
IWineD3D
Resource
_GetParent
(
pTest
,
(
IUnknown
**
)
ppDecl
);
IWineD3D
Resource
_Release
(
pTest
);
IWineD3D
VertexDeclaration
_GetParent
(
pTest
,
(
IUnknown
**
)
ppDecl
);
IWineD3D
VertexDeclaration
_Release
(
pTest
);
}
else
{
*
ppDecl
=
NULL
;
}
...
...
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