[wintab32] If we could not find a stylus sort of device, we haven't found a tablet
Jeremy White
jwhite at codeweavers.com
Mon Dec 31 10:00:13 CST 2007
---
dlls/winex11.drv/wintab.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/wintab.c b/dlls/winex11.drv/wintab.c
index 5876bd3..0228cf5 100644
--- a/dlls/winex11.drv/wintab.c
+++ b/dlls/winex11.drv/wintab.c
@@ -723,9 +723,16 @@ void X11DRV_LoadTabletInfo(HWND hwnddefault)
}
pXFreeDeviceList(devices);
- gSysDevice.NCSRTYPES = cursor_target+1;
- gNumCursors = cursor_target+1;
- Tablet_FixupCursors();
+
+ if (axis_read_complete)
+ {
+ gSysDevice.NCSRTYPES = cursor_target+1;
+ gNumCursors = cursor_target+1;
+ Tablet_FixupCursors();
+ }
+ else
+ WARN("Did not find a valid stylus cursor with >= 5 axes, returning 0 valid devices.\n");
+
wine_tsx11_unlock();
}
More information about the wine-patches
mailing list