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
127733eb
Commit
127733eb
authored
May 18, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Remove explicit cast to long as it happens implicitly.
LPDIEFFECT->rglDirection is a LPLONG.
parent
7bec8e1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+2
-2
No files found.
dlls/dinput/effect_linuxinput.c
View file @
127733eb
...
@@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
...
@@ -342,8 +342,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
return
diErr
;
return
diErr
;
else
{
else
{
if
(
peff
->
dwFlags
&
DIEFF_CARTESIAN
)
{
if
(
peff
->
dwFlags
&
DIEFF_CARTESIAN
)
{
peff
->
rglDirection
[
0
]
=
(
long
)(
sin
(
M_PI
*
3
*
This
->
effect
.
direction
/
0x7FFF
)
*
1000
)
;
peff
->
rglDirection
[
0
]
=
sin
(
M_PI
*
3
*
This
->
effect
.
direction
/
0x7FFF
)
*
1000
;
peff
->
rglDirection
[
1
]
=
(
long
)(
cos
(
M_PI
*
3
*
This
->
effect
.
direction
/
0x7FFF
)
*
1000
)
;
peff
->
rglDirection
[
1
]
=
cos
(
M_PI
*
3
*
This
->
effect
.
direction
/
0x7FFF
)
*
1000
;
}
else
{
}
else
{
/* Polar and spherical coordinates are the same for two or less
/* Polar and spherical coordinates are the same for two or less
* axes.
* axes.
...
...
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