*/}}
Ver código fonte

wintab z sometimes not work

YimingWu 3 meses atrás
pai
commit
33fa8156e0
1 arquivos alterados com 4 adições e 2 exclusões
  1. 4 2
      la_kernel.c

+ 4 - 2
la_kernel.c

@@ -324,8 +324,10 @@ void la_OpenWacomWinTab(HWND hwnd){
 	assert(wWTInfoRetVal == sizeof(AXIS));
 
     wWTInfoRetVal = gpWTInfoA(WTI_DEVICES, DVC_Z, &TabletZ);
-    assert(wWTInfoRetVal == sizeof(AXIS));
-    MAIN.WinTabMaxHover = TabletZ.axMax;
+    if (wWTInfoRetVal) {
+        assert(wWTInfoRetVal == sizeof(AXIS));
+        MAIN.WinTabMaxHover = TabletZ.axMax;
+    }
 
     AXIS tabletPressure = { 0 };
     gpWTInfoA(WTI_DEVICES, DVC_NPRESSURE, &tabletPressure); MAIN.WinTabMaxPenPressure = tabletPressure.axMax + 1;