xfree86: Fix up xf86ScaleAxis

Some driver still call it, so we might as well work correctly. Always
resetting X to the Sxhigh is sub-optimal.
This commit is contained in:
Peter Hutterer 2008-06-08 23:38:45 +09:30
parent f8431a62d5
commit a3a7c12fcf

View File

@ -785,9 +785,9 @@ xf86ScaleAxis(int Cx,
ErrorF ("Divide by Zero in xf86ScaleAxis");
}
if (X > Sxlow)
if (X > Sxhigh)
X = Sxlow;
if (X < Sxhigh)
if (X < Sxlow)
X = Sxhigh;
return (X);