sync with OpenBSD -current
This commit is contained in:
parent
5d45cd7ee8
commit
155eb8555e
5506 changed files with 1786257 additions and 1416034 deletions
|
@ -622,8 +622,8 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
|
|||
pPointer = MIPOINTER(pDev);
|
||||
pScreen = pPointer->pScreen;
|
||||
|
||||
x = trunc(*screenx);
|
||||
y = trunc(*screeny);
|
||||
x = floor(*screenx);
|
||||
y = floor(*screeny);
|
||||
|
||||
switch_screen = !point_on_screen(pScreen, x, y);
|
||||
|
||||
|
@ -701,9 +701,9 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
|
|||
* drop the float component on the floor
|
||||
* FIXME: only drop remainder for ConstrainCursorHarder, not for screen
|
||||
* crossings */
|
||||
if (x != trunc(*screenx))
|
||||
if (x != floor(*screenx))
|
||||
*screenx = x;
|
||||
if (y != trunc(*screeny))
|
||||
if (y != floor(*screeny))
|
||||
*screeny = y;
|
||||
|
||||
return pScreen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue