weston-test-client-helper: Use wl_fixed_to_double() when printing axis value

This commit is contained in:
Kristian Høgsberg
2013-10-09 14:23:00 -07:00
parent c1b244f61d
commit 4c8ce20ba7
+2 -1
View File
@@ -169,7 +169,8 @@ static void
pointer_handle_axis(void *data, struct wl_pointer *wl_pointer, pointer_handle_axis(void *data, struct wl_pointer *wl_pointer,
uint32_t time, uint32_t axis, wl_fixed_t value) 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 = { static const struct wl_pointer_listener pointer_listener = {