Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f193197a
Commit
f193197a
authored
Dec 24, 2007
by
Jeremy White
Committed by
Alexandre Julliard
Dec 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32: Capture the number of buttons earlier, allowing our button maps to be filled in.
parent
3036e7f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
wintab.c
dlls/winex11.drv/wintab.c
+4
-3
No files found.
dlls/winex11.drv/wintab.c
View file @
f193197a
...
...
@@ -474,8 +474,8 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
int
shft
=
0
;
X11DRV_expect_error
(
data
->
display
,
Tablet_ErrorHandler
,
NULL
);
pXGetDeviceButtonMapping
(
data
->
display
,
opendevice
,
map
,
32
);
if
(
X11DRV_check_error
())
cursor
->
BUTTONS
=
pXGetDeviceButtonMapping
(
data
->
display
,
opendevice
,
map
,
32
);
if
(
X11DRV_check_error
()
||
cursor
->
BUTTONS
<=
0
)
{
TRACE
(
"No buttons, Non Tablet Device
\n
"
);
pXCloseDevice
(
data
->
display
,
opendevice
);
...
...
@@ -606,7 +606,8 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
int
i
;
Button
=
(
XButtonInfoPtr
)
any
;
cursor
->
BUTTONS
=
Button
->
num_buttons
;
TRACE
(
" ButtonInput %d: [class %d|length %d|num_buttons %d]
\n
"
,
class_loop
,
(
int
)
Button
->
class
,
Button
->
length
,
Button
->
num_buttons
);
cursor
->
BTNNAMES
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
WCHAR
)
*
cchBuf
);
for
(
i
=
0
;
i
<
cursor
->
BUTTONS
;
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