summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-10-09 14:23:00 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-10-10 16:50:18 -0700
commit4c8ce20ba7a1373276fd2c0dea9a237601a70d48 (patch)
tree2a69a7ff98870f479a11d992ea18283049794c12
parentc1b244f61d041510c7c1f3e2ee1cae0ccc273c9d (diff)
weston-test-client-helper: Use wl_fixed_to_double() when printing axis value
-rw-r--r--tests/weston-test-client-helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c
index 79dd5dad..b19be400 100644
--- a/tests/weston-test-client-helper.c
+++ b/tests/weston-test-client-helper.c
@@ -169,7 +169,8 @@ static void
pointer_handle_axis(void *data, struct wl_pointer *wl_pointer,
uint32_t time, uint32_t axis, wl_fixed_t value)
{
- fprintf(stderr, "test-client: got pointer axis %u %d\n", axis, value);
+ fprintf(stderr, "test-client: got pointer axis %u %f\n",
+ axis, wl_fixed_to_double(value));
}
static const struct wl_pointer_listener pointer_listener = {