John Klehm : wintab32: Support overlap statuses in WTOpen.
Alexandre Julliard
julliard at winehq.org
Fri Sep 12 07:01:38 CDT 2008
Module: wine
Branch: master
Commit: 212488d846f6739d7f9dd611427449d140512b91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=212488d846f6739d7f9dd611427449d140512b91
Author: John Klehm <xixsimplicityxix at gmail.com>
Date: Tue Apr 29 00:21:30 2008 -0500
wintab32: Support overlap statuses in WTOpen.
---
dlls/wintab32/context.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index 271473a..5e5ada8 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -435,13 +435,12 @@ HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
{
LPOPENCONTEXT newcontext;
- TRACE("(%p, %p, %u)\n", hWnd, lpLogCtx, fEnable);
+ TRACE("hWnd=%p, lpLogCtx=%p, fEnable=%u\n", hWnd, lpLogCtx, fEnable);
DUMPCONTEXT(*lpLogCtx);
newcontext = HeapAlloc(GetProcessHeap(), 0 , sizeof(OPENCONTEXT));
newcontext->context = *lpLogCtx;
newcontext->hwndOwner = hWnd;
- newcontext->enabled = fEnable;
newcontext->ActiveCursor = -1;
newcontext->QueueSize = 10;
newcontext->PacketsQueued = 0;
@@ -458,7 +457,17 @@ HCTX WINAPI WTOpenW(HWND hWnd, LPLOGCONTEXTW lpLogCtx, BOOL fEnable)
TABLET_PostTabletMessage(newcontext, _WT_CTXOPEN(newcontext->context.lcMsgBase), (WPARAM)newcontext->handle,
newcontext->context.lcStatus, TRUE);
- newcontext->context.lcStatus = CXS_ONTOP;
+ if (fEnable)
+ {
+ newcontext->enabled = TRUE;
+ /* TODO: Add to top of overlap order */
+ newcontext->context.lcStatus = CXS_ONTOP;
+ }
+ else
+ {
+ newcontext->enabled = FALSE;
+ newcontext->context.lcStatus = CXS_DISABLED;
+ }
TABLET_PostTabletMessage(newcontext, _WT_CTXOVERLAP(newcontext->context.lcMsgBase),
(WPARAM)newcontext->handle,
More information about the wine-cvs
mailing list