summaryrefslogtreecommitdiff
path: root/mi/mipointer.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-03 13:10:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-10-11 12:06:56 +1000
commit3b36fd1b49030ead44358945f62e5abe7f4609ce (patch)
treed35339e0b8f872ec68e5ae31097efb94ed136791 /mi/mipointer.h
parent81cfe44b1ed0de84ad1941fe2ca74bebef3fc58d (diff)
mi: switch miPointerSetPosition to take doubles
Don't switch between doubles and ints in the caller, instead take doubles in miPointerSetPosition and do the conversion there. For full feature we should change everything down from here for doubles too. Functional change: previously we'd restore the remainder regardless of screen switching/confinement (despite what the comment said). Now, screen changing or cursor constraints will cause the remainder be clipped off. This should happen for cursor constraints but arguably not for screen crossing. This also corrects a currently wrong comment about miPointerSetPosition's input coordinates. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'mi/mipointer.h')
-rw-r--r--mi/mipointer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mi/mipointer.h b/mi/mipointer.h
index 35428df32..45abb5b56 100644
--- a/mi/mipointer.h
+++ b/mi/mipointer.h
@@ -134,8 +134,8 @@ extern _X_EXPORT void miPointerGetPosition(
extern _X_EXPORT ScreenPtr miPointerSetPosition(
DeviceIntPtr pDev,
int mode,
- int *x,
- int *y);
+ double *x,
+ double *y);
extern _X_EXPORT void miPointerUpdateSprite(
DeviceIntPtr pDev);