mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 15:48:05 +02:00
weston-test-client-helper: Use wl_fixed_to_double() when printing axis value
This commit is contained in:
parent
c1b244f61d
commit
4c8ce20ba7
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue