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
fa8d7a0f
Commit
fa8d7a0f
authored
May 05, 2005
by
Lionel Ulmer
Committed by
Alexandre Julliard
May 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- more pretty print for the types flag
- more Windows-aligned check for object instances
parent
8480f39f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
device.c
dlls/dinput/device.c
+10
-3
No files found.
dlls/dinput/device.c
View file @
fa8d7a0f
...
...
@@ -80,7 +80,10 @@ void _dump_EnumObjects_flags(DWORD dwFlags) {
FE
(
DIDFT_NODATA
),
FE
(
DIDFT_FFACTUATOR
),
FE
(
DIDFT_FFEFFECTTRIGGER
),
FE
(
DIDFT_OUTPUT
)
FE
(
DIDFT_OUTPUT
),
FE
(
DIDFT_VENDORDEFINED
),
FE
(
DIDFT_ALIAS
),
FE
(
DIDFT_OPTIONAL
)
#undef FE
};
type
=
(
dwFlags
&
0xFF0000FF
);
...
...
@@ -315,8 +318,12 @@ DataFormat *create_DataFormat(const DIDATAFORMAT *wine_format, LPCDIDATAFORMAT a
(
/* Then check if it accepts any instance id, and if not, if it matches Wine's
* instance id.
*/
((
asked_format
->
rgodf
[
j
].
dwType
&
0x00FFFF00
)
==
DIDFT_ANYINSTANCE
)
||
(
wine_format
->
rgodf
[
i
].
dwType
&
asked_format
->
rgodf
[
j
].
dwType
)))
{
(
DIDFT_GETINSTANCE
(
asked_format
->
rgodf
[
j
].
dwType
)
==
0xFFFF
)
||
(
DIDFT_GETINSTANCE
(
asked_format
->
rgodf
[
j
].
dwType
)
==
0x00FF
)
||
/* This is mentionned in no DX docs, but it works fine - tested on WinXP */
(
DIDFT_GETINSTANCE
(
asked_format
->
rgodf
[
j
].
dwType
)
==
DIDFT_GETINSTANCE
(
wine_format
->
rgodf
[
i
].
dwType
)))
&&
(
/* Then if the asked type matches the one Wine provides */
wine_format
->
rgodf
[
i
].
dwType
&
asked_format
->
rgodf
[
j
].
dwType
))
{
done
[
j
]
=
1
;
...
...
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