Jeremy White : wintab32: Add modest trace information for tablets.
Alexandre Julliard
julliard at winehq.org
Mon Dec 31 12:32:34 CST 2007
Module: wine
Branch: master
Commit: ca89d7e80998a817b4ed82e30901854b3f70cf8a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca89d7e80998a817b4ed82e30901854b3f70cf8a
Author: Jeremy White <jwhite at codeweavers.com>
Date: Sun Dec 30 11:41:54 2007 -0600
wintab32: Add modest trace information for tablets.
---
dlls/winex11.drv/wintab.c | 1 +
dlls/wintab32/context.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index c3ad140..e3c7b57 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -436,6 +436,7 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
wine_tsx11_unlock();
return;
}
+ TRACE("XListInputDevices reports %d devices\n", num_devices);
for (loop=0; loop < num_devices; loop++)
{
int class_loop;
diff --git a/dlls/wintab32/context.c b/dlls/wintab32/context.c
index 7974972..bd79701 100644
--- a/dlls/wintab32/context.c
+++ b/dlls/wintab32/context.c
@@ -367,6 +367,8 @@ static VOID TABLET_BlankPacketData(LPOPENCONTEXT context, LPVOID lpPkt, INT n)
UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode)
{
UINT result;
+
+ TRACE("(%d, %d, %p, %d)\n", wCategory, nIndex, lpOutput, bUnicode);
if (gLoaded == FALSE)
LoadTablet();
@@ -409,7 +411,7 @@ UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode)
LOGCONTEXTWtoA(&buf, lpOutput);
}
- return bUnicode ? sizeof(LOGCONTEXTW) : sizeof(LOGCONTEXTA);
+ result = bUnicode ? sizeof(LOGCONTEXTW) : sizeof(LOGCONTEXTA);
}
else if (is_string_field(wCategory, nIndex) && !bUnicode)
{
@@ -422,6 +424,7 @@ UINT WINAPI WTInfoT(UINT wCategory, UINT nIndex, LPVOID lpOutput, BOOL bUnicode)
else
result = pWTInfoW(wCategory, nIndex, lpOutput);
+ TRACE("returns %d\n", result);
return result;
}
More information about the wine-cvs
mailing list