From b76a7e06b20a885ce820fb21887ceeebec6e01fd Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Nov 2023 09:59:54 +1000 Subject: [PATCH] wacom: Extend the pressurecurve range by 25% in each direction Now that we have a smooth range of curves we can extend the curve into the maximum range we can support given 0 < x|y < 100. --- panels/wacom/cc-wacom-stylus-page.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panels/wacom/cc-wacom-stylus-page.c b/panels/wacom/cc-wacom-stylus-page.c index 14616bfa0..cdf62f764 100644 --- a/panels/wacom/cc-wacom-stylus-page.c +++ b/panels/wacom/cc-wacom-stylus-page.c @@ -49,10 +49,10 @@ struct _CcWacomStylusPage G_DEFINE_TYPE (CcWacomStylusPage, cc_wacom_stylus_page, GTK_TYPE_BOX) -static const graphene_point_t P1MIN = GRAPHENE_POINT_INIT (-75, 75); -static const graphene_point_t P1MAX = GRAPHENE_POINT_INIT (75, -75); -static const graphene_point_t P2MIN = GRAPHENE_POINT_INIT (25, 175); -static const graphene_point_t P2MAX = GRAPHENE_POINT_INIT (175, 25); +static const graphene_point_t P1MIN = GRAPHENE_POINT_INIT (-100, 100); +static const graphene_point_t P1MAX = GRAPHENE_POINT_INIT (100, -100); +static const graphene_point_t P2MIN = GRAPHENE_POINT_INIT (0, 200); +static const graphene_point_t P2MAX = GRAPHENE_POINT_INIT (200, 0); static void map_pressurecurve (unsigned int val, graphene_point_t *p1, graphene_point_t *p2)