diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index e42bd5fe..8d722ad8 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -364,7 +364,7 @@ normalize_pressure(const struct input_absinfo *absinfo, * threshold is 0 pressure. */ int base = tool->pressure.threshold.lower; - double range = absinfo->maximum - base + 1; + double range = absinfo->maximum - base; double value = (absinfo->value - base) / range; return max(0.0, value);