diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-15 15:09:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-17 11:13:47 +1000 |
commit | fe15f60ef2742f9fb9dffe2bc1f4bcd2f296b37b (patch) | |
tree | 82b7767acd5d3d5c54e6a7cc9cfd22409b337f5b | |
parent | 832dfd03bb3eb6b8291aba2b70fd0faf2e1976a5 (diff) |
Re-use width/height variables.
No functional changes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/synaptics.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index b2efc25..ed931f1 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -487,15 +487,10 @@ static void set_default_parameters(LocalDevicePtr local) pars->top_edge = xf86SetIntOption(opts, "TopEdge", t); pars->bottom_edge = xf86SetIntOption(opts, "BottomEdge", b); - pars->area_top_edge = set_percent_option(opts, "AreaTopEdge", - priv->maxy - priv->miny, priv->miny); - pars->area_bottom_edge = set_percent_option(opts, "AreaBottomEdge", - priv->maxy - priv->miny, priv->miny); - - pars->area_left_edge = set_percent_option(opts, "AreaLeftEdge", - priv->maxx - priv->minx, priv->minx); - pars->area_right_edge = set_percent_option(opts, "AreaRightEdge", - priv->maxx - priv->minx, priv->minx); + pars->area_top_edge = set_percent_option(opts, "AreaTopEdge", height, priv->miny); + pars->area_bottom_edge = set_percent_option(opts, "AreaBottomEdge", height, priv->miny); + pars->area_left_edge = set_percent_option(opts, "AreaLeftEdge", width, priv->minx); + pars->area_right_edge = set_percent_option(opts, "AreaRightEdge", width, priv->minx); pars->finger_low = xf86SetIntOption(opts, "FingerLow", fingerLow); pars->finger_high = xf86SetIntOption(opts, "FingerHigh", fingerHigh); |