summaryrefslogtreecommitdiff
path: root/Xi/extinit.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:12:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:28:12 +1000
commit54716fd3dbc251db9d251d1d0435942efaa63259 (patch)
treed065ba481e24c35a5479b7a1a9ea69599e30e8eb /Xi/extinit.c
parent129ac9a9145323e3f126590b491e718f976f80ce (diff)
Convert to using int32_t fixed point values on the wire.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r--Xi/extinit.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 9628dffb8..fa7031e6c 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -628,14 +628,10 @@ SDeviceLeaveNotifyEvent (xXILeaveEvent *from, xXILeaveEvent *to)
swapl(&to->root, n);
swapl(&to->event, n);
swapl(&to->child, n);
- swaps(&to->root_x.integral, n);
- swaps(&to->root_x.frac, n);
- swaps(&to->root_y.integral, n);
- swaps(&to->root_y.frac, n);
- swaps(&to->event_x.integral, n);
- swaps(&to->event_x.frac, n);
- swaps(&to->event_y.integral, n);
- swaps(&to->event_y.frac, n);
+ swapl(&to->root_x, n);
+ swapl(&to->root_y, n);
+ swapl(&to->event_x, n);
+ swapl(&to->event_y, n);
swaps(&to->sourceid, n);
swaps(&to->buttons_len, n);
swapl(&to->mods.base_mods, n);
@@ -721,14 +717,10 @@ static void SDeviceEvent(xXIDeviceEvent *from, xXIDeviceEvent *to)
swapl(&to->root, n);
swapl(&to->event, n);
swapl(&to->child, n);
- swapl(&to->root_x.integral, n);
- swapl(&to->root_x.frac, n);
- swapl(&to->root_y.integral, n);
- swapl(&to->root_y.frac, n);
- swapl(&to->event_x.integral, n);
- swapl(&to->event_x.frac, n);
- swapl(&to->event_y.integral, n);
- swapl(&to->event_y.frac, n);
+ swapl(&to->root_x, n);
+ swapl(&to->root_y, n);
+ swapl(&to->event_x, n);
+ swapl(&to->event_y, n);
swaps(&to->buttons_len, n);
swaps(&to->valuators_len, n);
swaps(&to->sourceid, n);