From 4ce19b4477057a724b548e342d4c6da2b6721824 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 30 Oct 2008 16:02:13 +1030 Subject: [PATCH] xfree86: fix xf86ScaleAxis once again. Maybe one day I stop doing stupid patches like a3a7c12fcf8e4ac1418f9ea53f76091f309a721b. So, if X < low, reset to low, and _not_ to high. If X > high, reset to high, and _not_ to low. --- hw/xfree86/common/xf86Xinput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index f99bfb700..f028a2578 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -935,9 +935,9 @@ xf86ScaleAxis(int Cx, } if (X > Sxhigh) - X = Sxlow; - if (X < Sxlow) X = Sxhigh; + if (X < Sxlow) + X = Sxlow; return (X); }