Module: wine Branch: master Commit: 3036e7f626dac9e5728029a5951f2d538bf6ccd4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3036e7f626dac9e5728029a595...
Author: Jeremy White jwhite@codeweavers.com Date: Mon Dec 24 13:34:46 2007 -0600
wintab32: Implement the ability to return the number of devices and cursors.
---
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 4b208da..32db612 100644 --- a/dlls/winex11.drv/wintab.c +++ b/dlls/winex11.drv/wintab.c @@ -950,6 +950,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}; @@ -964,6 +965,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;