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
68eb3843
Commit
68eb3843
authored
Jan 24, 2005
by
Robert North
Committed by
Alexandre Julliard
Jan 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WTEnable, when called to disable tablet context, clears context queue,
as per wintab spec.
parent
47f55d6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
context.c
dlls/wintab32/context.c
+10
-0
No files found.
dlls/wintab32/context.c
View file @
68eb3843
...
...
@@ -233,6 +233,14 @@ LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd)
return
ptr
;
}
/*
* Flushes all packets from the queue.
*/
static
void
inline
TABLET_FlushQueue
(
LPOPENCONTEXT
context
)
{
context
->
PacketsQueued
=
0
;
}
int
static
inline
CopyTabletData
(
LPVOID
target
,
LPVOID
src
,
INT
size
)
{
memcpy
(
target
,
src
,
size
);
...
...
@@ -584,6 +592,8 @@ BOOL WINAPI WTEnable(HCTX hCtx, BOOL fEnable)
EnterCriticalSection
(
&
csTablet
);
context
=
TABLET_FindOpenContext
(
hCtx
);
if
(
!
fEnable
)
TABLET_FlushQueue
(
context
);
context
->
enabled
=
fEnable
;
LeaveCriticalSection
(
&
csTablet
);
...
...
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