summaryrefslogtreecommitdiff
path: root/XI2proto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-11 12:30:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-12 11:44:20 +1000
commitc9ebfba4a128f0d0eda920a02af013b795adfec5 (patch)
treee23914dac1fb4d55d08127c8d16467e84f3bab9e /XI2proto.h
parent2339bc5b0eea89e676ac58a38ac5eb6a8ae6e6f9 (diff)
Define FP1616 as one int16_t, one uint16_t.
Diffstat (limited to 'XI2proto.h')
-rw-r--r--XI2proto.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 6680b4b..e34d3c8 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -44,7 +44,6 @@
#define KeyCode CARD8
#define Mask CARD32
#define Atom CARD32
-#define FP1616 INT32 /* 16.16 packed fixed point */
/* Request opcodes */
#define X_XIQueryDevicePointer 40
@@ -65,6 +64,13 @@
* COMMON STRUCTS *
* *
*************************************************************************************/
+/* Fixed point 16.16 */
+typedef struct
+{
+ int16_t integral;
+ uint16_t frac;
+} FP1616;
+
/* Fixed point 32.32 */
typedef struct {
int32_t integral;