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
fc5eeebe
Commit
fc5eeebe
authored
Jul 30, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add double to float conversion casts in device.c.
parent
c6f1b6ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
device.c
dlls/wined3d/device.c
+5
-5
No files found.
dlls/wined3d/device.c
View file @
fc5eeebe
...
...
@@ -2611,7 +2611,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLight(IWineD3DDevice *iface, DWORD I
{
object
->
exponent
=
128
.
0
f
;
}
object
->
cutoff
=
pLight
->
Phi
*
90
/
M_PI
;
object
->
cutoff
=
(
float
)
(
pLight
->
Phi
*
90
/
M_PI
)
;
/* FIXME: Range */
break
;
...
...
@@ -2814,10 +2814,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetClipPlane(IWineD3DDevice *iface, DWO
return
WINED3DERR_INVALIDCALL
;
}
pPlane
[
0
]
=
This
->
stateBlock
->
clipplane
[
Index
][
0
];
pPlane
[
1
]
=
This
->
stateBlock
->
clipplane
[
Index
][
1
];
pPlane
[
2
]
=
This
->
stateBlock
->
clipplane
[
Index
][
2
];
pPlane
[
3
]
=
This
->
stateBlock
->
clipplane
[
Index
][
3
];
pPlane
[
0
]
=
(
float
)
This
->
stateBlock
->
clipplane
[
Index
][
0
];
pPlane
[
1
]
=
(
float
)
This
->
stateBlock
->
clipplane
[
Index
][
1
];
pPlane
[
2
]
=
(
float
)
This
->
stateBlock
->
clipplane
[
Index
][
2
];
pPlane
[
3
]
=
(
float
)
This
->
stateBlock
->
clipplane
[
Index
][
3
];
return
WINED3D_OK
;
}
...
...
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