From fe15f60ef2742f9fb9dffe2bc1f4bcd2f296b37b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 15 Jun 2010 15:09:53 +1000 Subject: Re-use width/height variables. No functional changes. Signed-off-by: Peter Hutterer --- src/synaptics.c | 13 ++++--------- 1 file 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); -- cgit v1.2.3