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
20276da9
Commit
20276da9
authored
Apr 29, 2008
by
John Klehm
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32: Support overlap statuses in WTEnable.
parent
212488d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
context.c
dlls/wintab32/context.c
+16
-4
No files found.
dlls/wintab32/context.c
View file @
20276da9
...
...
@@ -622,15 +622,27 @@ BOOL WINAPI WTEnable(HCTX hCtx, BOOL fEnable)
{
LPOPENCONTEXT
context
;
TRACE
(
"
(%p, %u)
\n
"
,
hCtx
,
fEnable
);
TRACE
(
"
hCtx=%p, fEnable=%u
\n
"
,
hCtx
,
fEnable
);
if
(
!
hCtx
)
return
0
;
if
(
!
hCtx
)
return
FALSE
;
EnterCriticalSection
(
&
csTablet
);
context
=
TABLET_FindOpenContext
(
hCtx
);
if
(
!
fEnable
)
/* if we want to enable and it is not enabled then */
if
(
fEnable
&&
!
context
->
enabled
)
{
context
->
enabled
=
TRUE
;
/* TODO: Add to top of overlap order */
context
->
context
.
lcStatus
=
CXS_ONTOP
;
}
/* if we want to disable and it is not disabled then */
else
if
(
!
fEnable
&&
context
->
enabled
)
{
context
->
enabled
=
FALSE
;
/* TODO: Remove from overlap order?? needs a test */
context
->
context
.
lcStatus
=
CXS_DISABLED
;
TABLET_FlushQueue
(
context
);
context
->
enabled
=
fEnable
;
}
LeaveCriticalSection
(
&
csTablet
);
return
TRUE
;
...
...
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