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
634cb775
Commit
634cb775
authored
Jun 15, 2020
by
André Hentschel
Committed by
Alexandre Julliard
Jun 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Change whitelist to a more neutral word.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
67d0038e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
wintab.c
dlls/winex11.drv/wintab.c
+9
-9
No files found.
dlls/winex11.drv/wintab.c
View file @
634cb775
...
...
@@ -394,7 +394,7 @@ static BOOL match_token(const char *haystack, const char *needle)
static
BOOL
is_tablet_cursor
(
const
char
*
name
,
const
char
*
type
)
{
int
i
;
static
const
char
*
tablet_cursor_
white
list
[]
=
{
static
const
char
*
tablet_cursor_
allow
list
[]
=
{
"wacom"
,
"wizardpen"
,
"acecad"
,
...
...
@@ -406,10 +406,10 @@ static BOOL is_tablet_cursor(const char *name, const char *type)
NULL
};
for
(
i
=
0
;
tablet_cursor_
white
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
name
&&
match_token
(
name
,
tablet_cursor_
white
list
[
i
]))
for
(
i
=
0
;
tablet_cursor_
allow
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
name
&&
match_token
(
name
,
tablet_cursor_
allow
list
[
i
]))
return
TRUE
;
if
(
type
&&
match_token
(
type
,
tablet_cursor_
white
list
[
i
]))
if
(
type
&&
match_token
(
type
,
tablet_cursor_
allow
list
[
i
]))
return
TRUE
;
}
return
FALSE
;
...
...
@@ -418,7 +418,7 @@ static BOOL is_tablet_cursor(const char *name, const char *type)
static
UINT
get_cursor_type
(
const
char
*
name
,
const
char
*
type
)
{
int
i
;
static
const
char
*
tablet_stylus_
white
list
[]
=
{
static
const
char
*
tablet_stylus_
allow
list
[]
=
{
"stylus"
,
"wizardpen"
,
"acecad"
,
...
...
@@ -427,14 +427,14 @@ static UINT get_cursor_type(const char *name, const char *type)
};
/* First check device type to avoid cases where name is "Pen and Eraser" and type is "ERASER" */
for
(
i
=
0
;
tablet_stylus_
white
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
type
&&
match_token
(
type
,
tablet_stylus_
white
list
[
i
]))
for
(
i
=
0
;
tablet_stylus_
allow
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
type
&&
match_token
(
type
,
tablet_stylus_
allow
list
[
i
]))
return
CSR_TYPE_PEN
;
}
if
(
type
&&
match_token
(
type
,
"eraser"
))
return
CSR_TYPE_ERASER
;
for
(
i
=
0
;
tablet_stylus_
white
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
name
&&
match_token
(
name
,
tablet_stylus_
white
list
[
i
]))
for
(
i
=
0
;
tablet_stylus_
allow
list
[
i
]
!=
NULL
;
i
++
)
{
if
(
name
&&
match_token
(
name
,
tablet_stylus_
allow
list
[
i
]))
return
CSR_TYPE_PEN
;
}
if
(
name
&&
match_token
(
name
,
"eraser"
))
...
...
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