diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-21 23:15:14 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-21 23:17:38 +0930 |
commit | c2a2c40506a57aa6d9e92e6dce372165c132eb85 (patch) | |
tree | 17bff252cb66b1123b30ea5f07e4c1c2ceefddb4 | |
parent | 7ada6945af8c690e629bfc4ad6fe19b49cbbb66e (diff) |
Fix stupid typos from last patch.
Don't mis-use a boolean as temporary variable either.
-rw-r--r-- | src/xf86MuTouch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xf86MuTouch.c b/src/xf86MuTouch.c index 8f78765..6e6a134 100644 --- a/src/xf86MuTouch.c +++ b/src/xf86MuTouch.c @@ -1803,19 +1803,21 @@ xf86MuTInit(InputDriverPtr drv, xf86Msg(X_CONFIG, "Microtouch device will work in %s mode\n", str); if (priv->max_x - priv->min_x <= 0) { + int tmp; xf86Msg(X_INFO, "MicroTouch: reverse x mode (minimum x position >= maximum x position)\n"); - priv->x_inverted = priv->max_x; /* X server doesn't do inverted by itself*/ + tmp = priv->max_x; /* X server doesn't do inverted by itself*/ priv->max_x = priv->min_x; - priv->min_x = priv->max_x; + priv->min_x = tmp; priv->x_inverted = TRUE; } else priv->x_inverted = FALSE; if (priv->max_y - priv->min_y <= 0) { + int tmp; xf86Msg(X_INFO, "MicroTouch: reverse y mode (minimum y position >= maximum y position)\n"); - priv->y_inverted = priv->max_y; + tmp = priv->max_y; priv->max_y = priv->min_y; - priv->min_y = priv->max_y; + priv->min_y = tmp; priv->y_inverted = TRUE; } else priv->y_inverted = FALSE; |