diff options
author | Hansem Ro <hansemro@outlook.com> | 2022-07-19 15:19:38 -0700 |
---|---|---|
committer | Hansem Ro <hansemro@outlook.com> | 2022-07-21 19:25:22 -0700 |
commit | 0f5436098b386c1fb21dc955981e9ac12196e490 (patch) | |
tree | 5db66aa5fecfee9bf5434f7419925100747c17e3 /platform/linuxbsd | |
parent | e44a2f16805b09a9a858ba5e8ebec7e598feb4d8 (diff) |
[X11] Do case-insensitive search for pen inversion detection
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/display_server_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp index ecd7723993..d4267d3c02 100644 --- a/platform/linuxbsd/display_server_x11.cpp +++ b/platform/linuxbsd/display_server_x11.cpp @@ -275,7 +275,7 @@ bool DisplayServerX11::_refresh_device_info() { 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_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); |