[wintab32 2/5] Implement the ability to return the number of devices and cursors

Jeremy White jwhite at codeweavers.com
Mon Dec 24 13:34:46 CST 2007


---
 dlls/winex11.drv/wintab.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index 6921f93..599e776 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -932,6 +932,7 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
             switch (nIndex)
             {
                 WORD version;
+                UINT num;
                 case IFC_WINTABID:
                 {
                     static const WCHAR driver[] = {'W','i','n','e',' ','W','i','n','t','a','b',' ','1','.','1',0};
@@ -946,6 +947,14 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
                     version = (0x00) | (0x01 << 8);
                     rc = CopyTabletData(lpOutput, &version,sizeof(WORD));
                     break;
+                case IFC_NDEVICES:
+                    num = 1;
+                    rc = CopyTabletData(lpOutput, &num,sizeof(num));
+                    break;
+                case IFC_NCURSORS:
+                    num = gNumCursors;
+                    rc = CopyTabletData(lpOutput, &num,sizeof(num));
+                    break;
                 default:
                     FIXME("WTI_INTERFACE unhandled index %i\n",nIndex);
                     rc = 0;



More information about the wine-patches mailing list