aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xfree86/common/xf86Xinput.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-19 07:24:51 +0000
committermarha <marha@users.sourceforge.net>2010-04-19 07:24:51 +0000
commitd76a22b9314bfd407c7e26f78305aeecb5d2bcfb (patch)
tree12159810407a7473bed2b7ebf2dd33a86aabf854 /xorg-server/hw/xfree86/common/xf86Xinput.c
parentc9431e290c4f5bc0dcd290880df404fb50a5aa5e (diff)
downloadvcxsrv-d76a22b9314bfd407c7e26f78305aeecb5d2bcfb.tar.gz
vcxsrv-d76a22b9314bfd407c7e26f78305aeecb5d2bcfb.tar.bz2
vcxsrv-d76a22b9314bfd407c7e26f78305aeecb5d2bcfb.zip
xserver git update 19/4/2010
Diffstat (limited to 'xorg-server/hw/xfree86/common/xf86Xinput.c')
-rw-r--r--xorg-server/hw/xfree86/common/xf86Xinput.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xorg-server/hw/xfree86/common/xf86Xinput.c b/xorg-server/hw/xfree86/common/xf86Xinput.c
index 7723ba683..dba3370f3 100644
--- a/xorg-server/hw/xfree86/common/xf86Xinput.c
+++ b/xorg-server/hw/xfree86/common/xf86Xinput.c
@@ -86,6 +86,7 @@
#include "windowstr.h" /* screenIsSaved */
#include <stdarg.h>
+#include <stdint.h> /* for int64_t */
#include <X11/Xpoll.h>
@@ -1177,12 +1178,11 @@ xf86ScaleAxis(int Cx,
int Rxlow )
{
int X;
- int dSx = Sxhigh - Sxlow;
- int dRx = Rxhigh - Rxlow;
+ int64_t dSx = Sxhigh - Sxlow;
+ int64_t dRx = Rxhigh - Rxlow;
- dSx = Sxhigh - Sxlow;
if (dRx) {
- X = ((dSx * (Cx - Rxlow)) / dRx) + Sxlow;
+ X = (int)(((dSx * (Cx - Rxlow)) / dRx) + Sxlow);
}
else {
X = 0;