From 1d0584d558d76e7f1104312e04dab2603dee23ae Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 14 Aug 2017 21:35:16 -0700 Subject: [PATCH] Hopefully fixed Wayland build --- src/video/wayland/SDL_waylandevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index f335fe2491398..7a777e14efd57 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -237,10 +237,10 @@ pointer_handle_axis_common(struct SDL_WaylandInput *input, switch (a) { case WL_POINTER_AXIS_VERTICAL_SCROLL: x = 0; - y = wl_fixed_to_float(value); + y = (float)wl_fixed_to_double(value); break; case WL_POINTER_AXIS_HORIZONTAL_SCROLL: - x = wl_fixed_to_float(value); + x = (float)wl_fixed_to_double(value); y = 0; break; default: