summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArrigo Marchiori <ardovm@yahoo.it>2008-11-20 09:57:34 +1000
committerPeter Hutterer <peter.hutterer@redhat.com>2008-11-20 09:57:34 +1000
commite94c776512adba9398a01406e630271cf912bf21 (patch)
tree85c328bc7798ac3870541478bdb79ca44adaca15 /src
parentd112cca181b9fc9586391e83b8c0ff26ca22ff9e (diff)
Fix y axis inversion for axis ranges with a non-zero minimum.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/xf86PM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86PM.c b/src/xf86PM.c
index 71edeee..95adb8b 100644
--- a/src/xf86PM.c
+++ b/src/xf86PM.c
@@ -716,7 +716,7 @@ DMC9000_ReadInput (InputInfoPtr pInfo)
}
if (priv->invert_y)
{
- y = priv->max_y - y;
+ y = priv->max_y - y + priv->min_y;
}
priv->packet[0] = priv->pen_down ? 0x01 : 0x00;