summaryrefslogtreecommitdiff
path: root/test/xi2
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-11-06 10:27:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-11-19 12:12:23 +1000
commitfd214aabf77c44ba0ca3fd438f0c3c8eb22c7211 (patch)
tree1d74e5ba62bfb4a451ef3cc1d19a37baa9de56f7 /test/xi2
parent011f8458805e443ac9130865d2840a929a00cabf (diff)
input: drop FP1616 macro
The double_to_f1616() functions do the same thing, and they're tested. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'test/xi2')
-rw-r--r--test/xi2/protocol-eventconvert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/xi2/protocol-eventconvert.c b/test/xi2/protocol-eventconvert.c
index 1188e8b25..bb3177cc1 100644
--- a/test/xi2/protocol-eventconvert.c
+++ b/test/xi2/protocol-eventconvert.c
@@ -338,8 +338,8 @@ test_values_XIDeviceEvent(DeviceEvent *in, xXIDeviceEvent * out, BOOL swap)
assert(out->event_x == 0); /* set in FixUpEventFromWindow */
assert(out->event_y == 0); /* set in FixUpEventFromWindow */
- assert(out->root_x == FP1616(in->root_x, in->root_x_frac));
- assert(out->root_y == FP1616(in->root_y, in->root_y_frac));
+ assert(out->root_x == double_to_fp1616(in->root_x + in->root_x_frac));
+ assert(out->root_y == double_to_fp1616(in->root_y + in->root_y_frac));
buttons = 0;
for (i = 0; i < bits_to_bytes(sizeof(in->buttons)); i++) {