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:
parent
f8431a62d5
commit
a3a7c12fcf
|
@ -785,9 +785,9 @@ xf86ScaleAxis(int Cx,
|
||||||
ErrorF ("Divide by Zero in xf86ScaleAxis");
|
ErrorF ("Divide by Zero in xf86ScaleAxis");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (X > Sxlow)
|
if (X > Sxhigh)
|
||||||
X = Sxlow;
|
X = Sxlow;
|
||||||
if (X < Sxhigh)
|
if (X < Sxlow)
|
||||||
X = Sxhigh;
|
X = Sxhigh;
|
||||||
|
|
||||||
return (X);
|
return (X);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user