Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Mayr
wine
Commits
5c6ece12
Commit
5c6ece12
authored
17 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
wintab32: Fix debug traces to use wine_dbg_sprintf.
parent
51ea5cb4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/wintab32/context.c
+35
-53
35 additions, 53 deletions
dlls/wintab32/context.c
with
35 additions
and
53 deletions
dlls/wintab32/context.c
+
35
−
53
View file @
5c6ece12
...
...
@@ -81,66 +81,49 @@ static BOOL is_string_field(UINT wCategory, UINT nIndex)
return
FALSE
;
}
static
char
*
DUMPBITS
(
int
x
,
char
*
buf
)
{
strcpy
(
buf
,
"{"
)
;
if
(
x
&
PK_CONTEXT
)
strcat
(
buf
,
"PK_CONTEXT "
)
;
if
(
x
&
PK_
STATUS
)
strcat
(
buf
,
"PK_
STATUS
"
);
if
(
x
&
PK_
TIME
)
strcat
(
buf
,
"PK_
TIME
"
);
if
(
x
&
PK_
CHANGED
)
strcat
(
buf
,
"PK_
CHANGED
"
);
if
(
x
&
PK_
SERIAL_NUMBER
)
strcat
(
buf
,
"PK_
SERIAL_NUMBER
"
);
if
(
x
&
PK_
CURSO
R
)
strcat
(
buf
,
"PK_
CURSO
R "
);
if
(
x
&
PK_
BUTTONS
)
strcat
(
buf
,
"PK_
BUTTONS
"
);
if
(
x
&
PK_
X
)
strcat
(
buf
,
"PK_
X
"
);
if
(
x
&
PK_
Y
)
strcat
(
buf
,
"PK_
Y
"
);
if
(
x
&
PK_
Z
)
strcat
(
buf
,
"PK_
Z
"
);
if
(
x
&
PK_
NORMAL_PRESSURE
)
strcat
(
buf
,
"PK_
NORMAL_PRESSURE
"
);
if
(
x
&
PK_
TANGENT
_PRESSURE
)
strcat
(
buf
,
"PK_
TANGENT
_PRESSURE "
);
if
(
x
&
PK_
ORIENTATION
)
strcat
(
buf
,
"PK_
ORIENTATION
"
);
if
(
x
&
PK_
R
OTATION
)
strcat
(
buf
,
"PK_
R
OTATION "
);
strcat
(
buf
,
"
}
"
);
return
buf
;
static
const
char
*
DUMPBITS
(
int
x
)
{
char
buf
[
200
]
;
buf
[
0
]
=
0
;
if
(
x
&
PK_
CONTEXT
)
strcat
(
buf
,
"PK_
CONTEXT
"
);
if
(
x
&
PK_
STATUS
)
strcat
(
buf
,
"PK_
STATUS
"
);
if
(
x
&
PK_
TIME
)
strcat
(
buf
,
"PK_
TIME
"
);
if
(
x
&
PK_
CHANGED
)
strcat
(
buf
,
"PK_
CHANGED
"
);
if
(
x
&
PK_
SERIAL_NUMBE
R
)
strcat
(
buf
,
"PK_
SERIAL_NUMBE
R "
);
if
(
x
&
PK_
CURSOR
)
strcat
(
buf
,
"PK_
CURSOR
"
);
if
(
x
&
PK_
BUTTONS
)
strcat
(
buf
,
"PK_
BUTTONS
"
);
if
(
x
&
PK_
X
)
strcat
(
buf
,
"PK_
X
"
);
if
(
x
&
PK_
Y
)
strcat
(
buf
,
"PK_
Y
"
);
if
(
x
&
PK_
Z
)
strcat
(
buf
,
"PK_
Z
"
);
if
(
x
&
PK_
NORMAL
_PRESSURE
)
strcat
(
buf
,
"PK_
NORMAL
_PRESSURE "
);
if
(
x
&
PK_
TANGENT_PRESSURE
)
strcat
(
buf
,
"PK_
TANGENT_PRESSURE
"
);
if
(
x
&
PK_O
RIEN
TATION
)
strcat
(
buf
,
"PK_O
RIEN
TATION "
);
if
(
x
&
PK_ROTATION
)
strcat
(
buf
,
"
PK_ROTATION
"
);
return
wine_dbg_sprintf
(
"{%s}"
,
buf
)
;
}
static
inline
void
DUMPPACKET
(
WTPACKET
packet
)
{
TRACE
(
"pkContext: %p pkStatus: 0x%x pkTime : 0x%x pkChanged: 0x%x pkSerialNumber: 0x%x pkCursor : %i pkButtons: %x pkX: %i pkY: %i pkZ: %i pkNormalPressure: %i pkTangentPressure: %i pkOrientation: (%i,%i,%i) pkRotation: (%i,%i,%i)
\n
"
,
packet
.
pkContext
,
(
UINT
)
packet
.
pkStatus
,
(
UINT
)
packet
.
pkTime
,
(
UINT
)
packet
.
pkChanged
,
packet
.
pkSerialNumber
,
packet
.
pkCursor
,
(
UINT
)
packet
.
pkButtons
,
packet
.
pkX
,
packet
.
pkY
,
packet
.
pkZ
,
packet
.
pkNormalPressure
,
packet
.
pkTangentPressure
,
packet
.
pkOrientation
.
orAzimuth
,
packet
.
pkOrientation
.
orAltitude
,
packet
.
pkOrientation
.
orTwist
,
packet
.
pkRotation
.
roPitch
,
packet
.
pkRotation
.
roRoll
,
packet
.
pkRotation
.
roYaw
);
packet
.
pkContext
,
packet
.
pkStatus
,
packet
.
pkTime
,
packet
.
pkChanged
,
packet
.
pkSerialNumber
,
packet
.
pkCursor
,
packet
.
pkButtons
,
packet
.
pkX
,
packet
.
pkY
,
packet
.
pkZ
,
packet
.
pkNormalPressure
,
packet
.
pkTangentPressure
,
packet
.
pkOrientation
.
orAzimuth
,
packet
.
pkOrientation
.
orAltitude
,
packet
.
pkOrientation
.
orTwist
,
packet
.
pkRotation
.
roPitch
,
packet
.
pkRotation
.
roRoll
,
packet
.
pkRotation
.
roYaw
);
}
static
inline
void
DUMPCONTEXT
(
LOGCONTEXTW
lc
)
{
CHAR
mmsg
[
4000
];
CHAR
bits
[
100
];
CHAR
bits1
[
100
];
CHAR
bits2
[
100
];
sprintf
(
mmsg
,
"%s, %x, %x, %x, %x, %x, %x, %x%s, %x%s, %x%s, %x, %x, %i, %i, %i, %i ,%i, %i, %i, %i, %i,%i, %i, %i, %i, %i, %i, %i, %i, %i, %i, %i %i %i"
,
wine_dbgstr_w
(
lc
.
lcName
),
lc
.
lcOptions
,
lc
.
lcStatus
,
lc
.
lcLocks
,
lc
.
lcMsgBase
,
lc
.
lcDevice
,
lc
.
lcPktRate
,
(
UINT
)
lc
.
lcPktData
,
DUMPBITS
(
lc
.
lcPktData
,
bits
),
(
UINT
)
lc
.
lcPktMode
,
DUMPBITS
(
lc
.
lcPktMode
,
bits1
),
(
UINT
)
lc
.
lcMoveMask
,
DUMPBITS
(
lc
.
lcMoveMask
,
bits2
),
(
INT
)
lc
.
lcBtnDnMask
,
(
INT
)
lc
.
lcBtnUpMask
,
(
INT
)
lc
.
lcInOrgX
,
(
INT
)
lc
.
lcInOrgY
,
(
INT
)
lc
.
lcInOrgZ
,
lc
.
lcInExtX
,
lc
.
lcInExtY
,
lc
.
lcInExtZ
,
lc
.
lcOutOrgX
,
lc
.
lcOutOrgY
,
lc
.
lcOutOrgZ
,
lc
.
lcOutExtX
,
lc
.
lcOutExtY
,
lc
.
lcOutExtZ
,
lc
.
lcSensX
,
lc
.
lcSensY
,
lc
.
lcSensZ
,
lc
.
lcSysMode
,
lc
.
lcSysOrgX
,
lc
.
lcSysOrgY
,
lc
.
lcSysExtX
,
lc
.
lcSysExtY
,
lc
.
lcSysSensX
,
lc
.
lcSysSensY
);
TRACE
(
"context: %s
\n
"
,
mmsg
);
TRACE
(
"context: %s, %x, %x, %x, %x, %x, %x, %x%s, %x%s, %x%s, %x, %x, %i, %i, %i, %i ,%i, %i, %i, %i, %i,%i, %i, %i, %i, %i, %i, %i, %i, %i, %i, %i %i %i"
,
wine_dbgstr_w
(
lc
.
lcName
),
lc
.
lcOptions
,
lc
.
lcStatus
,
lc
.
lcLocks
,
lc
.
lcMsgBase
,
lc
.
lcDevice
,
lc
.
lcPktRate
,
lc
.
lcPktData
,
DUMPBITS
(
lc
.
lcPktData
),
lc
.
lcPktMode
,
DUMPBITS
(
lc
.
lcPktMode
),
lc
.
lcMoveMask
,
DUMPBITS
(
lc
.
lcMoveMask
),
lc
.
lcBtnDnMask
,
lc
.
lcBtnUpMask
,
lc
.
lcInOrgX
,
lc
.
lcInOrgY
,
lc
.
lcInOrgZ
,
lc
.
lcInExtX
,
lc
.
lcInExtY
,
lc
.
lcInExtZ
,
lc
.
lcOutOrgX
,
lc
.
lcOutOrgY
,
lc
.
lcOutOrgZ
,
lc
.
lcOutExtX
,
lc
.
lcOutExtY
,
lc
.
lcOutExtZ
,
lc
.
lcSensX
,
lc
.
lcSensY
,
lc
.
lcSensZ
,
lc
.
lcSysMode
,
lc
.
lcSysOrgX
,
lc
.
lcSysOrgY
,
lc
.
lcSysExtX
,
lc
.
lcSysExtY
,
lc
.
lcSysSensX
,
lc
.
lcSysSensY
);
}
...
...
@@ -306,10 +289,9 @@ static LPVOID TABLET_CopyPacketData(LPOPENCONTEXT context, LPVOID lpPkt,
LPWTPACKET
wtp
)
{
LPBYTE
ptr
;
CHAR
bits
[
100
];
ptr
=
lpPkt
;
TRACE
(
"Packet Bits %s
\n
"
,
DUMPBITS
(
context
->
context
.
lcPktData
,
bits
));
TRACE
(
"Packet Bits %s
\n
"
,
DUMPBITS
(
context
->
context
.
lcPktData
));
if
(
context
->
context
.
lcPktData
&
PK_CONTEXT
)
ptr
+=
CopyTabletData
(
ptr
,
&
wtp
->
pkContext
,
sizeof
(
HCTX
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment