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
77c8a159
Commit
77c8a159
authored
Dec 04, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Remove unneeded casts.
parent
cd296448
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
device.c
dlls/d3d9/device.c
+5
-5
volume.c
dlls/d3d9/volume.c
+1
-1
No files found.
dlls/d3d9/device.c
View file @
77c8a159
...
...
@@ -205,7 +205,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetCursorProperties(LPDIRECT3DDEVIC
}
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DDevice_SetCursorProperties
(
This
->
WineD3DDevice
,
XHotSpot
,
YHotSpot
,
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
hr
=
IWineD3DDevice_SetCursorProperties
(
This
->
WineD3DDevice
,
XHotSpot
,
YHotSpot
,
pSurface
->
wineD3DSurface
);
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
}
...
...
@@ -294,7 +294,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetBackBuffer(LPDIRECT3DDEVICE9 ifa
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d9_cs
);
rc
=
IWineD3DDevice_GetBackBuffer
(
This
->
WineD3DDevice
,
iSwapChain
,
BackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
(
IWineD3DSurface
**
)
&
retSurface
);
rc
=
IWineD3DDevice_GetBackBuffer
(
This
->
WineD3DDevice
,
iSwapChain
,
BackBuffer
,
(
WINED3DBACKBUFFER_TYPE
)
Type
,
&
retSurface
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retSurface
&&
NULL
!=
ppBackBuffer
)
{
IWineD3DSurface_GetParent
(
retSurface
,
(
IUnknown
**
)
ppBackBuffer
);
IWineD3DSurface_Release
(
retSurface
);
...
...
@@ -538,7 +538,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_SetRenderTarget(LPDIRECT3DDEVICE9 i
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
pSurface
?
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
:
NULL
);
hr
=
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
RenderTargetIndex
,
pSurface
?
pSurface
->
wineD3DSurface
:
NULL
);
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
}
...
...
@@ -847,7 +847,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetTexture(LPDIRECT3DDEVICE9 iface,
}
EnterCriticalSection
(
&
d3d9_cs
);
rc
=
IWineD3DDevice_GetTexture
(
This
->
WineD3DDevice
,
Stage
,
(
IWineD3DBaseTexture
**
)
&
retTexture
);
rc
=
IWineD3DDevice_GetTexture
(
This
->
WineD3DDevice
,
Stage
,
&
retTexture
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retTexture
)
{
IWineD3DBaseTexture_GetParent
(
retTexture
,
(
IUnknown
**
)
ppTexture
);
IWineD3DBaseTexture_Release
(
retTexture
);
...
...
@@ -1221,7 +1221,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_GetStreamSource(LPDIRECT3DDEVICE9 iface, U
}
EnterCriticalSection
(
&
d3d9_cs
);
rc
=
IWineD3DDevice_GetStreamSource
(
This
->
WineD3DDevice
,
StreamNumber
,
(
IWineD3DVertexBuffer
**
)
&
retStream
,
OffsetInBytes
,
pStride
);
rc
=
IWineD3DDevice_GetStreamSource
(
This
->
WineD3DDevice
,
StreamNumber
,
&
retStream
,
OffsetInBytes
,
pStride
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retStream
)
{
IWineD3DVertexBuffer_GetParent
(
retStream
,
(
IUnknown
**
)
pStream
);
IWineD3DVertexBuffer_Release
(
retStream
);
...
...
dlls/d3d9/volume.c
View file @
77c8a159
...
...
@@ -205,7 +205,7 @@ HRESULT WINAPI D3D9CB_CreateVolume(IUnknown *pDevice, IUnknown *pSuperior, UINT
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
ppVolume
=
NULL
;
}
else
{
*
ppVolume
=
(
IWineD3DVolume
*
)
object
->
wineD3DVolume
;
*
ppVolume
=
object
->
wineD3DVolume
;
object
->
container
=
pSuperior
;
object
->
forwardReference
=
pSuperior
;
}
...
...
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