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
357c3f4a
Commit
357c3f4a
authored
Jan 14, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Remove superfluous pointer casts.
parent
02602bd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
device.c
dlls/d3d8/device.c
+6
-6
No files found.
dlls/d3d8/device.c
View file @
357c3f4a
...
...
@@ -764,11 +764,11 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, ID
/* Copy rect by rect */
if
(
NULL
!=
pSourceRects
&&
NULL
!=
pDestPoints
)
{
for
(
i
=
0
;
i
<
cRects
;
++
i
)
{
IWineD3DSurface_BltFast
(
Dest
->
wineD3DSurface
,
pDestPoints
[
i
].
x
,
pDestPoints
[
i
].
y
,
Source
->
wineD3DSurface
,
(
RECT
*
)
&
pSourceRects
[
i
],
WINEDDBLTFAST_NOCOLORKEY
);
IWineD3DSurface_BltFast
(
Dest
->
wineD3DSurface
,
pDestPoints
[
i
].
x
,
pDestPoints
[
i
].
y
,
Source
->
wineD3DSurface
,
&
pSourceRects
[
i
],
WINEDDBLTFAST_NOCOLORKEY
);
}
}
else
{
for
(
i
=
0
;
i
<
cRects
;
++
i
)
{
IWineD3DSurface_BltFast
(
Dest
->
wineD3DSurface
,
0
,
0
,
Source
->
wineD3DSurface
,
(
RECT
*
)
&
pSourceRects
[
i
],
WINEDDBLTFAST_NOCOLORKEY
);
IWineD3DSurface_BltFast
(
Dest
->
wineD3DSurface
,
0
,
0
,
Source
->
wineD3DSurface
,
&
pSourceRects
[
i
],
WINEDDBLTFAST_NOCOLORKEY
);
}
}
}
...
...
@@ -1778,7 +1778,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShaderConstant(LPDIRECT3DDEV
TRACE
(
"(%p) : Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DDevice_SetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
CONST
float
*
)
pConstantData
,
ConstantCount
);
hr
=
IWineD3DDevice_SetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
pConstantData
,
ConstantCount
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
@@ -1789,7 +1789,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShaderConstant(LPDIRECT3DDEV
TRACE
(
"(%p) : Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DDevice_GetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
float
*
)
pConstantData
,
ConstantCount
);
hr
=
IWineD3DDevice_GetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
pConstantData
,
ConstantCount
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
@@ -2032,7 +2032,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_SetPixelShaderConstant(LPDIRECT3DDE
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DDevice_SetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
CONST
float
*
)
pConstantData
,
ConstantCount
);
hr
=
IWineD3DDevice_SetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
pConstantData
,
ConstantCount
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
@@ -2043,7 +2043,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShaderConstant(LPDIRECT3DDEVI
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DDevice_GetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
float
*
)
pConstantData
,
ConstantCount
);
hr
=
IWineD3DDevice_GetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
pConstantData
,
ConstantCount
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
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