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
15a33ab2
Commit
15a33ab2
authored
Jan 24, 2009
by
Vincent Pelletier
Committed by
Alexandre Julliard
Jan 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Fix gain-related bugs.
parent
667a1ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+3
-2
No files found.
dlls/dinput/effect_linuxinput.c
View file @
15a33ab2
...
@@ -380,7 +380,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
...
@@ -380,7 +380,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
}
}
if
(
dwFlags
&
DIEP_GAIN
)
{
if
(
dwFlags
&
DIEP_GAIN
)
{
peff
->
dwGain
=
This
->
gain
;
peff
->
dwGain
=
This
->
gain
*
10000
/
0xFFFF
;
}
}
if
(
dwFlags
&
DIEP_SAMPLEPERIOD
)
{
if
(
dwFlags
&
DIEP_SAMPLEPERIOD
)
{
...
@@ -628,7 +628,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
...
@@ -628,7 +628,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
/* Gain and Sample Period settings are not supported by the linux
/* Gain and Sample Period settings are not supported by the linux
* event system */
* event system */
if
(
dwFlags
&
DIEP_GAIN
)
if
(
dwFlags
&
DIEP_GAIN
)
This
->
gain
=
0xFFFF
*
peff
->
dwGain
/
1000
;
This
->
gain
=
0xFFFF
*
peff
->
dwGain
/
1000
0
;
if
(
dwFlags
&
DIEP_SAMPLEPERIOD
)
if
(
dwFlags
&
DIEP_SAMPLEPERIOD
)
TRACE
(
"Sample period requested but no sample period functionality present.
\n
"
);
TRACE
(
"Sample period requested but no sample period functionality present.
\n
"
);
...
@@ -792,6 +792,7 @@ HRESULT linuxinput_create_effect(
...
@@ -792,6 +792,7 @@ HRESULT linuxinput_create_effect(
newEffect
->
ref
=
1
;
newEffect
->
ref
=
1
;
newEffect
->
guid
=
*
rguid
;
newEffect
->
guid
=
*
rguid
;
newEffect
->
fd
=
fd
;
newEffect
->
fd
=
fd
;
newEffect
->
gain
=
0xFFFF
;
/* set the type. this cannot be changed over the effect's life. */
/* set the type. this cannot be changed over the effect's life. */
switch
(
type
)
{
switch
(
type
)
{
...
...
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