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
ebcedd03
Commit
ebcedd03
authored
Jan 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove unneeded casts.
parent
45fbfbce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
device.c
dlls/wined3d/device.c
+10
-10
No files found.
dlls/wined3d/device.c
View file @
ebcedd03
...
...
@@ -1050,7 +1050,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
HRESULT
hr
;
/* Create the volume */
hr
=
D3DCB_CreateVolume
(
This
->
parent
,
parent
,
tmpW
,
tmpH
,
tmpD
,
Format
,
Pool
,
Usage
,
(
IWineD3DVolume
**
)
&
object
->
volumes
[
i
],
pSharedHandle
);
&
object
->
volumes
[
i
],
pSharedHandle
);
if
(
FAILED
(
hr
))
{
ERR
(
"Creating a volume for the volume texture failed(%08x)
\n
"
,
hr
);
...
...
@@ -1490,7 +1490,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
object
->
presentParms
=
*
pPresentationParameters
;
TRACE
(
"calling rendertarget CB
\n
"
);
hr
=
D3DCB_CreateRenderTarget
(
(
IUnknown
*
)
This
->
parent
,
hr
=
D3DCB_CreateRenderTarget
(
This
->
parent
,
parent
,
object
->
presentParms
.
BackBufferWidth
,
object
->
presentParms
.
BackBufferHeight
,
...
...
@@ -1572,7 +1572,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
for
(
i
=
0
;
i
<
object
->
presentParms
.
BackBufferCount
;
i
++
)
{
TRACE
(
"calling rendertarget CB
\n
"
);
hr
=
D3DCB_CreateRenderTarget
(
(
IUnknown
*
)
This
->
parent
,
hr
=
D3DCB_CreateRenderTarget
(
This
->
parent
,
parent
,
object
->
presentParms
.
BackBufferWidth
,
object
->
presentParms
.
BackBufferHeight
,
...
...
@@ -1607,7 +1607,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
if
(
pPresentationParameters
->
EnableAutoDepthStencil
&&
hr
==
WINED3D_OK
)
{
TRACE
(
"Creating depth stencil buffer
\n
"
);
if
(
This
->
auto_depth_stencil_buffer
==
NULL
)
{
hr
=
D3DCB_CreateDepthStencil
(
(
IUnknown
*
)
This
->
parent
,
hr
=
D3DCB_CreateDepthStencil
(
This
->
parent
,
parent
,
object
->
presentParms
.
BackBufferWidth
,
object
->
presentParms
.
BackBufferHeight
,
...
...
@@ -2054,7 +2054,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
/* Setup the implicit swapchain */
TRACE
(
"Creating implicit swapchain
\n
"
);
hr
=
D3DCB_CreateAdditionalSwapChain
(
(
IUnknown
*
)
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
);
hr
=
D3DCB_CreateAdditionalSwapChain
(
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
);
if
(
FAILED
(
hr
)
||
!
swapchain
)
{
WARN
(
"Failed to create implicit swapchain
\n
"
);
goto
err_out
;
...
...
@@ -2613,7 +2613,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_MultiplyTransform(IWineD3DDevice *iface
FIXME
(
"Unhandled transform state!!
\n
"
);
}
multiply_matrix
(
&
temp
,
mat
,
(
const
WINED3DMATRIX
*
)
pMatrix
);
multiply_matrix
(
&
temp
,
mat
,
pMatrix
);
/* Apply change via set transform - will reapply to eg. lights this way */
return
IWineD3DDeviceImpl_SetTransform
(
iface
,
State
,
&
temp
);
...
...
@@ -4564,7 +4564,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetDisplayMode(IWineD3DDevice *iface, U
HRESULT
hr
;
if
(
iSwapChain
>
0
)
{
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapChain
);
if
(
hr
==
WINED3D_OK
)
{
hr
=
IWineD3DSwapChain_GetDisplayMode
(
swapChain
,
pMode
);
IWineD3DSwapChain_Release
(
swapChain
);
...
...
@@ -4789,7 +4789,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Present(IWineD3DDevice *iface,
for
(
i
=
0
;
i
<
swapchains
;
i
++
)
{
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
i
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
i
,
&
swapChain
);
TRACE
(
"presentinng chain %d, %p
\n
"
,
i
,
swapChain
);
IWineD3DSwapChain_Present
(
swapChain
,
pSourceRect
,
pDestRect
,
hDestWindowOverride
,
pDirtyRegion
,
0
);
IWineD3DSwapChain_Release
(
swapChain
);
...
...
@@ -5339,7 +5339,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, I
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetFrontBufferData
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSurface
*
pDestSurface
)
{
IWineD3DSwapChain
*
swapChain
;
HRESULT
hr
;
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapChain
);
if
(
hr
==
WINED3D_OK
)
{
hr
=
IWineD3DSwapChain_GetFrontBufferData
(
swapChain
,
pDestSurface
);
IWineD3DSwapChain_Release
(
swapChain
);
...
...
@@ -5448,7 +5448,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetRasterStatus(IWineD3DDevice *iface
TRACE
(
"(%p) : SwapChain %d returning %p
\n
"
,
This
,
iSwapChain
,
pRasterStatus
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
(
IWineD3DSwapChain
**
)
&
swapChain
);
hr
=
IWineD3DDeviceImpl_GetSwapChain
(
iface
,
iSwapChain
,
&
swapChain
);
if
(
hr
==
WINED3D_OK
){
hr
=
IWineD3DSwapChain_GetRasterStatus
(
swapChain
,
pRasterStatus
);
IWineD3DSwapChain_Release
(
swapChain
);
...
...
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