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
9e46e114
Commit
9e46e114
authored
Mar 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e146f4c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
Makefile.in
dlls/wintab32/tests/Makefile.in
+0
-1
context.c
dlls/wintab32/tests/context.c
+11
-11
No files found.
dlls/wintab32/tests/Makefile.in
View file @
9e46e114
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
wintab32.dll
IMPORTS
=
user32
...
...
dlls/wintab32/tests/context.c
View file @
9e46e114
...
...
@@ -165,40 +165,40 @@ static void test_WTInfoA(void)
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_X
,
&
value
);
ok
(
ret
==
sizeof
(
AXIS
),
"Wrong DVC_X size %d
\n
"
,
ret
);
trace
(
"DVC_X %
d, %
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
trace
(
"DVC_X %
ld, %l
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_Y
,
&
value
);
ok
(
ret
==
sizeof
(
AXIS
),
"Wrong DVC_Y size %d
\n
"
,
ret
);
trace
(
"DVC_Y %
d, %
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
trace
(
"DVC_Y %
ld, %l
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_Z
,
&
value
);
if
(
ret
)
trace
(
"DVC_Z %
d, %
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
trace
(
"DVC_Z %
ld, %l
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
else
trace
(
"DVC_Z not supported
\n
"
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_NPRESSURE
,
&
value
);
ok
(
ret
==
sizeof
(
AXIS
),
"Wrong DVC_NPRESSURE, size %d
\n
"
,
ret
);
trace
(
"DVC_NPRESSURE %
d, %
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
trace
(
"DVC_NPRESSURE %
ld, %l
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_TPRESSURE
,
&
value
);
if
(
ret
)
trace
(
"DVC_TPRESSURE %
d, %
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
trace
(
"DVC_TPRESSURE %
ld, %l
d, %d
\n
"
,
value
.
axMin
,
value
.
axMax
,
value
.
axUnits
);
else
trace
(
"DVC_TPRESSURE not supported
\n
"
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_ORIENTATION
,
&
orientation
);
ok
(
ret
==
sizeof
(
AXIS
)
*
3
,
"Wrong DVC_ORIENTATION, size %d
\n
"
,
ret
);
trace
(
"DVC_ORIENTATION0 %
d, %
d, %d
\n
"
,
orientation
[
0
].
axMin
,
orientation
[
0
].
axMax
,
orientation
[
0
].
axUnits
);
trace
(
"DVC_ORIENTATION1 %
d, %
d, %d
\n
"
,
orientation
[
1
].
axMin
,
orientation
[
1
].
axMax
,
orientation
[
1
].
axUnits
);
trace
(
"DVC_ORIENTATION2 %
d, %
d, %d
\n
"
,
orientation
[
2
].
axMin
,
orientation
[
2
].
axMax
,
orientation
[
2
].
axUnits
);
trace
(
"DVC_ORIENTATION0 %
ld, %l
d, %d
\n
"
,
orientation
[
0
].
axMin
,
orientation
[
0
].
axMax
,
orientation
[
0
].
axUnits
);
trace
(
"DVC_ORIENTATION1 %
ld, %l
d, %d
\n
"
,
orientation
[
1
].
axMin
,
orientation
[
1
].
axMax
,
orientation
[
1
].
axUnits
);
trace
(
"DVC_ORIENTATION2 %
ld, %l
d, %d
\n
"
,
orientation
[
2
].
axMin
,
orientation
[
2
].
axMax
,
orientation
[
2
].
axUnits
);
ret
=
pWTInfoA
(
WTI_DEVICES
,
DVC_ROTATION
,
&
orientation
);
if
(
ret
)
{
trace
(
"DVC_ROTATION0 %
d, %
d, %d
\n
"
,
orientation
[
0
].
axMin
,
orientation
[
0
].
axMax
,
orientation
[
0
].
axUnits
);
trace
(
"DVC_ROTATION1 %
d, %
d, %d
\n
"
,
orientation
[
1
].
axMin
,
orientation
[
1
].
axMax
,
orientation
[
1
].
axUnits
);
trace
(
"DVC_ROTATION2 %
d, %
d, %d
\n
"
,
orientation
[
2
].
axMin
,
orientation
[
2
].
axMax
,
orientation
[
2
].
axUnits
);
trace
(
"DVC_ROTATION0 %
ld, %l
d, %d
\n
"
,
orientation
[
0
].
axMin
,
orientation
[
0
].
axMax
,
orientation
[
0
].
axUnits
);
trace
(
"DVC_ROTATION1 %
ld, %l
d, %d
\n
"
,
orientation
[
1
].
axMin
,
orientation
[
1
].
axMax
,
orientation
[
1
].
axUnits
);
trace
(
"DVC_ROTATION2 %
ld, %l
d, %d
\n
"
,
orientation
[
2
].
axMin
,
orientation
[
2
].
axMax
,
orientation
[
2
].
axUnits
);
}
else
trace
(
"DVC_ROTATION not supported
\n
"
);
...
...
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