Convert wl_pointer::axis to wl_fixed_t

To go with the matching protocol change.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Daniel Stone 2012-05-30 16:32:00 +01:00 committed by Kristian Høgsberg
parent 0c1e46eb18
commit 2fce4028d6
5 changed files with 6 additions and 6 deletions

View File

@ -385,7 +385,7 @@ pointer_handle_button(void *data, struct wl_pointer *wl_pointer,
static void
pointer_handle_axis(void *data, struct wl_pointer *wl_pointer,
uint32_t time, uint32_t axis, int32_t value)
uint32_t time, uint32_t axis, wl_fixed_t value)
{
}

View File

@ -1813,7 +1813,7 @@ pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial,
static void
pointer_handle_axis(void *data, struct wl_pointer *pointer,
uint32_t time, uint32_t axis, int32_t value)
uint32_t time, uint32_t axis, wl_fixed_t value)
{
}

View File

@ -559,12 +559,12 @@ input_handle_button(void *data, struct wl_pointer *pointer,
static void
input_handle_axis(void *data, struct wl_pointer *pointer,
uint32_t time, uint32_t axis, int32_t value)
uint32_t time, uint32_t axis, wl_fixed_t value)
{
struct wayland_input *input = data;
struct wayland_compositor *c = input->compositor;
notify_axis(&c->base.seat->seat, time, axis, wl_fixed_from_int(value));
notify_axis(&c->base.seat->seat, time, axis, value);
}
static const struct wl_pointer_listener pointer_listener = {

View File

@ -1728,7 +1728,7 @@ notify_axis(struct wl_seat *seat, uint32_t time, uint32_t axis,
if (seat->pointer->focus_resource)
wl_pointer_send_axis(seat->pointer->focus_resource, time, axis,
wl_fixed_to_int(value));
value);
}
static int

View File

@ -107,7 +107,7 @@ pointer_handle_button(void *data, struct wl_pointer *pointer,
static void
pointer_handle_axis(void *data, struct wl_pointer *pointer,
uint32_t time, uint32_t axis, int32_t value)
uint32_t time, uint32_t axis, wl_fixed_t value)
{
}