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
bca813a5
Commit
bca813a5
authored
Jan 29, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Remove superfluous pointer casts.
parent
9d4c9a0c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
device.c
dlls/d3d9/device.c
+1
-1
directx.c
dlls/d3d9/directx.c
+1
-1
stateblock.c
dlls/d3d9/tests/stateblock.c
+9
-9
No files found.
dlls/d3d9/device.c
View file @
bca813a5
...
...
@@ -617,7 +617,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_StretchRect(LPDIRECT3DDEVICE9EX ifa
TRACE
(
"(%p)->(%p,%p,%p,%p,%d)
\n
"
,
This
,
src
,
pSourceRect
,
dst
,
pDestRect
,
Filter
);
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DSurface_Blt
(
dst
->
wineD3DSurface
,
(
RECT
*
)
pDestRect
,
src
->
wineD3DSurface
,
(
RECT
*
)
pSourceRect
,
0
,
NULL
,
Filter
);
hr
=
IWineD3DSurface_Blt
(
dst
->
wineD3DSurface
,
pDestRect
,
src
->
wineD3DSurface
,
pSourceRect
,
0
,
NULL
,
Filter
);
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
}
...
...
dlls/d3d9/directx.c
View file @
bca813a5
...
...
@@ -37,7 +37,7 @@ static HRESULT WINAPI IDirect3D9Impl_QueryInterface(LPDIRECT3D9EX iface, REFIID
return
S_OK
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDirect3D9Ex
))
{
if
(
This
->
extended
)
{
*
ppobj
=
(
IDirect3D9Ex
*
)
This
;
*
ppobj
=
This
;
TRACE
(
"Returning IDirect3D9Ex interface at %p
\n
"
,
*
ppobj
);
IDirect3D9Ex_AddRef
((
IDirect3D9Ex
*
)
*
ppobj
);
}
else
{
...
...
dlls/d3d9/tests/stateblock.c
View file @
bca813a5
...
...
@@ -269,7 +269,7 @@ static int switch_render_target(
HRESULT
hret
;
D3DPRESENT_PARAMETERS
present_parameters
;
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
IDirect3DSwapChain9
*
swapchain
=
NULL
;
IDirect3DSurface9
*
backbuffer
=
NULL
;
...
...
@@ -313,7 +313,7 @@ static int revert_render_target(
void
*
data
)
{
HRESULT
hret
;
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
/* Reset the old render target */
hret
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
edata
->
original_render_target
);
...
...
@@ -347,7 +347,7 @@ static int end_stateblock(
void
*
data
)
{
HRESULT
hret
;
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
hret
=
IDirect3DDevice9_EndStateBlock
(
device
,
&
edata
->
stateblock
);
ok
(
hret
==
D3D_OK
,
"EndStateBlock returned %#x.
\n
"
,
hret
);
...
...
@@ -359,7 +359,7 @@ static int abort_stateblock(
IDirect3DDevice9
*
device
,
void
*
data
)
{
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
IUnknown_Release
(
edata
->
stateblock
);
return
EVENT_OK
;
...
...
@@ -369,7 +369,7 @@ static int apply_stateblock(
IDirect3DDevice9
*
device
,
void
*
data
)
{
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
HRESULT
hret
;
hret
=
IDirect3DStateBlock9_Apply
(
edata
->
stateblock
);
...
...
@@ -388,7 +388,7 @@ static int capture_stateblock(
void
*
data
)
{
HRESULT
hret
;
event_data
*
edata
=
(
event_data
*
)
data
;
event_data
*
edata
=
data
;
hret
=
IDirect3DStateBlock9_Capture
(
edata
->
stateblock
);
ok
(
hret
==
D3D_OK
,
"Capture returned %#x.
\n
"
,
hret
);
...
...
@@ -548,7 +548,7 @@ static void shader_constant_get_handler(
IDirect3DDevice9
*
device
,
const
state_test
*
test
,
void
*
data
)
{
HRESULT
hret
;
shader_constant_data
*
scdata
=
(
shader_constant_data
*
)
data
;
shader_constant_data
*
scdata
=
data
;
const
shader_constant_arg
*
scarg
=
test
->
test_arg
;
unsigned
int
index
=
scarg
->
idx
;
...
...
@@ -848,7 +848,7 @@ static void transform_get_handler(
IDirect3DDevice9
*
device
,
const
state_test
*
test
,
void
*
data
)
{
HRESULT
hret
;
transform_data
*
tdata
=
(
transform_data
*
)
data
;
transform_data
*
tdata
=
data
;
hret
=
IDirect3DDevice9_GetTransform
(
device
,
D3DTS_VIEW
,
&
tdata
->
view
);
ok
(
hret
==
D3D_OK
,
"GetTransform returned %#x.
\n
"
,
hret
);
...
...
@@ -1100,7 +1100,7 @@ static void render_state_get_handler(
IDirect3DDevice9
*
device
,
const
state_test
*
test
,
void
*
data
)
{
HRESULT
hret
;
render_state_data
*
rsdata
=
(
render_state_data
*
)
data
;
render_state_data
*
rsdata
=
data
;
unsigned
int
i
=
0
;
for
(
i
=
0
;
i
<
D3D9_RENDER_STATES
;
i
++
)
{
...
...
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