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.
This commit is contained in:
parent
7814309ee9
commit
b76a7e06b2
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue