Merge pull request #63304 from hansemro/x11-eraser-case-insensitive-3.x

[3.x, X11] Do case-insensitive search for pen inversion detection
This commit is contained in:
Rémi Verschelde 2022-07-22 09:17:37 +02:00 committed by GitHub
commit 38b95cc2fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -739,7 +739,7 @@ bool OS_X11::refresh_device_info() {
xi.pen_pressure_range[dev->deviceid] = Vector2(pressure_min, pressure_max); xi.pen_pressure_range[dev->deviceid] = Vector2(pressure_min, pressure_max);
xi.pen_tilt_x_range[dev->deviceid] = Vector2(tilt_x_min, tilt_x_max); xi.pen_tilt_x_range[dev->deviceid] = Vector2(tilt_x_min, tilt_x_max);
xi.pen_tilt_y_range[dev->deviceid] = Vector2(tilt_y_min, tilt_y_max); xi.pen_tilt_y_range[dev->deviceid] = Vector2(tilt_y_min, tilt_y_max);
xi.pen_inverted_devices[dev->deviceid] = (bool)strstr(dev->name, "eraser"); xi.pen_inverted_devices[dev->deviceid] = String(dev->name).findn("eraser") > 0;
} }
XIFreeDeviceInfo(info); XIFreeDeviceInfo(info);