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

dev
Kristian Høgsberg 11 years ago
parent c1b244f61d
commit 4c8ce20ba7
  1. 3
      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 = {

Loading…
Cancel
Save