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
f074c0e1
Commit
f074c0e1
authored
Dec 31, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove unneeded casts.
parent
159672d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
device.c
dlls/ddraw/device.c
+6
-6
viewport.c
dlls/ddraw/viewport.c
+1
-1
No files found.
dlls/ddraw/device.c
View file @
f074c0e1
...
...
@@ -1350,8 +1350,8 @@ IDirect3DDeviceImpl_1_CreateMatrix(IDirect3DDevice *iface, D3DMATRIXHANDLE *D3DM
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_OUTOFMEMORY
;
}
This
->
Handles
[
(
DWORD
)
*
D3DMatHandle
-
1
].
ptr
=
Matrix
;
This
->
Handles
[
(
DWORD
)
*
D3DMatHandle
-
1
].
type
=
DDrawHandle_Matrix
;
This
->
Handles
[
*
D3DMatHandle
-
1
].
ptr
=
Matrix
;
This
->
Handles
[
*
D3DMatHandle
-
1
].
type
=
DDrawHandle_Matrix
;
TRACE
(
" returning matrix handle %d
\n
"
,
*
D3DMatHandle
);
LeaveCriticalSection
(
&
ddraw_cs
);
...
...
@@ -1382,7 +1382,7 @@ IDirect3DDeviceImpl_1_SetMatrix(IDirect3DDevice *iface,
D3DMATRIX
*
D3DMatrix
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
iface
);
TRACE
(
"(%p)->(%08x,%p)
\n
"
,
This
,
(
DWORD
)
D3DMatHandle
,
D3DMatrix
);
TRACE
(
"(%p)->(%08x,%p)
\n
"
,
This
,
D3DMatHandle
,
D3DMatrix
);
if
(
(
!
D3DMatHandle
)
||
(
!
D3DMatrix
)
)
return
DDERR_INVALIDPARAMS
;
...
...
@@ -1451,7 +1451,7 @@ IDirect3DDeviceImpl_1_GetMatrix(IDirect3DDevice *iface,
D3DMATRIX
*
D3DMatrix
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
iface
);
TRACE
(
"(%p)->(%08x,%p)
\n
"
,
This
,
(
DWORD
)
D3DMatHandle
,
D3DMatrix
);
TRACE
(
"(%p)->(%08x,%p)
\n
"
,
This
,
D3DMatHandle
,
D3DMatrix
);
if
(
!
D3DMatrix
)
return
DDERR_INVALIDPARAMS
;
...
...
@@ -1499,7 +1499,7 @@ IDirect3DDeviceImpl_1_DeleteMatrix(IDirect3DDevice *iface,
D3DMATRIXHANDLE
D3DMatHandle
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
iface
);
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
(
DWORD
)
D3DMatHandle
);
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
D3DMatHandle
);
if
(
!
D3DMatHandle
)
return
DDERR_INVALIDPARAMS
;
...
...
@@ -4589,7 +4589,7 @@ IDirect3DDeviceImpl_7_Clear(IDirect3DDevice7 *iface,
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice7
,
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%08x,%p,%08x,%08x,%f,%08x): Relay
\n
"
,
This
,
Count
,
Rects
,
Flags
,
(
DWORD
)
Color
,
Z
,
Stencil
);
TRACE
(
"(%p)->(%08x,%p,%08x,%08x,%f,%08x): Relay
\n
"
,
This
,
Count
,
Rects
,
Flags
,
Color
,
Z
,
Stencil
);
/* Note; D3DRECT is compatible with WINED3DRECT */
EnterCriticalSection
(
&
ddraw_cs
);
...
...
dlls/ddraw/viewport.c
View file @
f074c0e1
...
...
@@ -515,7 +515,7 @@ IDirect3DViewportImpl_SetBackground(IDirect3DViewport3 *iface,
D3DMATERIALHANDLE
hMat
)
{
ICOM_THIS_FROM
(
IDirect3DViewportImpl
,
IDirect3DViewport3
,
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
(
DWORD
)
hMat
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
hMat
);
EnterCriticalSection
(
&
ddraw_cs
);
if
(
hMat
&&
hMat
>
This
->
ddraw
->
d3ddevice
->
numHandles
)
...
...
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