xfree86: fix xf86ScaleAxis once again.

Maybe one day I stop doing stupid patches like
a3a7c12fcf.

So, if X < low, reset to low, and _not_ to high.
If X > high, reset to high, and _not_ to low.
This commit is contained in:
Peter Hutterer 2008-10-30 16:02:13 +10:30
parent f12d7ad164
commit 4ce19b4477

View File

@ -935,9 +935,9 @@ xf86ScaleAxis(int Cx,
}
if (X > Sxhigh)
X = Sxlow;
if (X < Sxlow)
X = Sxhigh;
if (X < Sxlow)
X = Sxlow;
return (X);
}