aboutsummaryrefslogtreecommitdiff
path: root/X11/extensions/XI2.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-07-18 08:49:24 +0200
committermarha <marha@users.sourceforge.net>2011-07-18 08:49:24 +0200
commit772373ccc8da2b2019555228f4972cc0c5a885a4 (patch)
tree31810c6b5d7fa49e0bb3fa7a51fc2cdcf411c081 /X11/extensions/XI2.h
parentd8e3f99cdf46297afeb26fe15ad30f7c6de8ee7c (diff)
downloadvcxsrv-772373ccc8da2b2019555228f4972cc0c5a885a4.tar.gz
vcxsrv-772373ccc8da2b2019555228f4972cc0c5a885a4.tar.bz2
vcxsrv-772373ccc8da2b2019555228f4972cc0c5a885a4.zip
Update following xorg packages
inputproto-2.0.2 xproto-7.0.22 resourceproto-1.2.0
Diffstat (limited to 'X11/extensions/XI2.h')
-rw-r--r--X11/extensions/XI2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/X11/extensions/XI2.h b/X11/extensions/XI2.h
index 6ba1377aa..3c39946f5 100644
--- a/X11/extensions/XI2.h
+++ b/X11/extensions/XI2.h
@@ -127,7 +127,7 @@
#define XISetMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] |= (1 << ((event) & 7)))
#define XIClearMask(ptr, event) (((unsigned char*)(ptr))[(event)>>3] &= ~(1 << ((event) & 7)))
#define XIMaskIsSet(ptr, event) (((unsigned char*)(ptr))[(event)>>3] & (1 << ((event) & 7)))
-#define XIMaskLen(event) (((event + 7) >> 3))
+#define XIMaskLen(event) (((event) >> 3) + 1)
/* Fake device ID's for event selection */
#define XIAllDevices 0