Wintab32 (Patch 4 of 8) -- Expose more XInput events through the
wintab api.
Robert North
7ownq0k402 at sneakemail.com
Fri Jan 21 12:43:46 CST 2005
This set of patches works towards better quality painting in Painter5.
Tested on Painter5 & Photoshop 6.
Changelog:
*WTEnable, when called to disable tablet context, clears context queue,
as per wintab spec.
-------------- next part --------------
Index: dlls/wintab32/context.c
===================================================================
--- dlls/wintab32/context.c (revision 156)
+++ dlls/wintab32/context.c (revision 157)
@@ -233,6 +233,14 @@
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 @@
EnterCriticalSection(&csTablet);
context = TABLET_FindOpenContext(hCtx);
+ if(!fEnable)
+ TABLET_FlushQueue(context);
context->enabled = fEnable;
LeaveCriticalSection(&csTablet);
More information about the wine-patches
mailing list