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
c1d5dfe8
Commit
c1d5dfe8
authored
Sep 29, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Sign-compare warnings fix.
parent
637c3125
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
+17
-15
dinput_main.c
dlls/dinput/dinput_main.c
+12
-10
effect_linuxinput.c
dlls/dinput/effect_linuxinput.c
+1
-1
joystick_linux.c
dlls/dinput/joystick_linux.c
+1
-1
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+3
-3
No files found.
dlls/dinput/dinput_main.c
View file @
c1d5dfe8
...
...
@@ -213,7 +213,7 @@ static void _dump_EnumDevices_dwFlags(DWORD dwFlags) {
}
void
_dump_diactionformatA
(
LPDIACTIONFORMATA
lpdiActionFormat
)
{
int
i
;
unsigned
int
i
;
FIXME
(
"diaf.dwSize = %d
\n
"
,
lpdiActionFormat
->
dwSize
);
FIXME
(
"diaf.dwActionSize = %d
\n
"
,
lpdiActionFormat
->
dwActionSize
);
...
...
@@ -221,7 +221,7 @@ void _dump_diactionformatA(LPDIACTIONFORMATA lpdiActionFormat) {
FIXME
(
"diaf.dwNumActions = %d
\n
"
,
lpdiActionFormat
->
dwNumActions
);
FIXME
(
"diaf.rgoAction = %p
\n
"
,
lpdiActionFormat
->
rgoAction
);
for
(
i
=
0
;
i
<
lpdiActionFormat
->
dwNumActions
;
i
++
)
{
FIXME
(
"diaf.rgoAction[%
d
]:
\n
"
,
i
);
FIXME
(
"diaf.rgoAction[%
u
]:
\n
"
,
i
);
FIXME
(
"
\t
uAppData=%lx
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
uAppData
);
FIXME
(
"
\t
dwSemantics=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwSemantics
);
FIXME
(
"
\t
dwFlags=%x
\n
"
,
lpdiActionFormat
->
rgoAction
[
i
].
dwFlags
);
...
...
@@ -250,8 +250,9 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
DIDEVICEINSTANCEA
devInstance
;
int
i
,
j
,
r
;
unsigned
int
i
;
int
j
,
r
;
TRACE
(
"(this=%p,0x%04x '%s',%p,%p,%04x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
...
...
@@ -261,7 +262,7 @@ static HRESULT WINAPI IDirectInputAImpl_EnumDevices(
if
(
!
dinput_devices
[
i
]
->
enum_deviceA
)
continue
;
for
(
j
=
0
,
r
=
-
1
;
r
!=
0
;
j
++
)
{
devInstance
.
dwSize
=
sizeof
(
devInstance
);
TRACE
(
" - checking device %
d
('%s')
\n
"
,
i
,
dinput_devices
[
i
]
->
name
);
TRACE
(
" - checking device %
u
('%s')
\n
"
,
i
,
dinput_devices
[
i
]
->
name
);
if
((
r
=
dinput_devices
[
i
]
->
enum_deviceA
(
dwDevType
,
dwFlags
,
&
devInstance
,
This
->
dwVersion
,
j
)))
{
if
(
lpCallback
(
&
devInstance
,
pvRef
)
==
DIENUM_STOP
)
return
0
;
...
...
@@ -280,8 +281,9 @@ static HRESULT WINAPI IDirectInputWImpl_EnumDevices(
{
IDirectInputImpl
*
This
=
impl_from_IDirectInput7W
(
iface
);
DIDEVICEINSTANCEW
devInstance
;
int
i
,
j
,
r
;
unsigned
int
i
;
int
j
,
r
;
TRACE
(
"(this=%p,0x%04x '%s',%p,%p,%04x)
\n
"
,
This
,
dwDevType
,
_dump_DIDEVTYPE_value
(
dwDevType
),
lpCallback
,
pvRef
,
dwFlags
);
...
...
@@ -291,7 +293,7 @@ static HRESULT WINAPI IDirectInputWImpl_EnumDevices(
if
(
!
dinput_devices
[
i
]
->
enum_deviceW
)
continue
;
for
(
j
=
0
,
r
=
-
1
;
r
!=
0
;
j
++
)
{
devInstance
.
dwSize
=
sizeof
(
devInstance
);
TRACE
(
" - checking device %
d
('%s')
\n
"
,
i
,
dinput_devices
[
i
]
->
name
);
TRACE
(
" - checking device %
u
('%s')
\n
"
,
i
,
dinput_devices
[
i
]
->
name
);
if
((
r
=
dinput_devices
[
i
]
->
enum_deviceW
(
dwDevType
,
dwFlags
,
&
devInstance
,
This
->
dwVersion
,
j
)))
{
if
(
lpCallback
(
&
devInstance
,
pvRef
)
==
DIENUM_STOP
)
return
0
;
...
...
@@ -479,7 +481,7 @@ static HRESULT WINAPI IDirectInput7AImpl_CreateDeviceEx(LPDIRECTINPUT7A iface, R
{
IDirectInputImpl
*
This
=
(
IDirectInputImpl
*
)
iface
;
HRESULT
ret_value
=
DIERR_DEVICENOTREG
;
int
i
;
unsigned
int
i
;
TRACE
(
"(%p)->(%s, %s, %p, %p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
debugstr_guid
(
riid
),
pvOut
,
lpUnknownOuter
);
...
...
@@ -515,7 +517,7 @@ static HRESULT WINAPI IDirectInput7WImpl_CreateDeviceEx(LPDIRECTINPUT7W iface, R
{
IDirectInputImpl
*
This
=
impl_from_IDirectInput7W
(
iface
);
HRESULT
ret_value
=
DIERR_DEVICENOTREG
;
int
i
;
unsigned
int
i
;
TRACE
(
"(%p)->(%s, %s, %p, %p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
debugstr_guid
(
riid
),
pvOut
,
lpUnknownOuter
);
...
...
dlls/dinput/effect_linuxinput.c
View file @
c1d5dfe8
...
...
@@ -406,7 +406,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetParameters(
}
if
(
dwFlags
&
DIEP_TYPESPECIFICPARAMS
)
{
int
expectedsize
=
0
;
DWORD
expectedsize
=
0
;
if
(
This
->
effect
.
type
==
FF_PERIODIC
)
{
expectedsize
=
sizeof
(
DIPERIODIC
);
}
else
if
(
This
->
effect
.
type
==
FF_CONSTANT
)
{
...
...
dlls/dinput/joystick_linux.c
View file @
c1d5dfe8
...
...
@@ -781,7 +781,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(
LPCDIPROPHEADER
ph
)
{
JoystickImpl
*
This
=
(
JoystickImpl
*
)
iface
;
int
i
;
DWORD
i
;
TRACE
(
"(%p,%s,%p)
\n
"
,
This
,
debugstr_guid
(
rguid
),
ph
);
...
...
dlls/dinput/joystick_linuxinput.c
View file @
c1d5dfe8
...
...
@@ -835,7 +835,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
LPCDIPROPRANGE
pr
=
(
LPCDIPROPRANGE
)
ph
;
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
DWORD
i
;
TRACE
(
"proprange(%d,%d) all
\n
"
,
pr
->
lMin
,
pr
->
lMax
);
for
(
i
=
0
;
i
<
This
->
base
.
data_format
.
wine_df
->
dwNumObjs
;
i
++
)
{
/* Scale dead-zone */
...
...
@@ -862,7 +862,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
case
(
DWORD
)
DIPROP_DEADZONE
:
{
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
DWORD
i
;
TRACE
(
"deadzone(%d) all
\n
"
,
pd
->
dwData
);
for
(
i
=
0
;
i
<
This
->
base
.
data_format
.
wine_df
->
dwNumObjs
;
i
++
)
{
This
->
props
[
i
].
lDeadZone
=
pd
->
dwData
;
...
...
@@ -893,7 +893,7 @@ static HRESULT WINAPI JoystickAImpl_SetProperty(LPDIRECTINPUTDEVICE8A iface,
LPCDIPROPDWORD
pd
=
(
LPCDIPROPDWORD
)
ph
;
if
(
ph
->
dwHow
==
DIPH_DEVICE
)
{
int
i
;
DWORD
i
;
TRACE
(
"saturation(%d) all
\n
"
,
pd
->
dwData
);
for
(
i
=
0
;
i
<
This
->
base
.
data_format
.
wine_df
->
dwNumObjs
;
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