|
@@ -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;
|