Commit 1d0584d558d76e7f1104312e04dab2603dee23ae

Sam Lantinga 2017-08-14T21:35:16

Hopefully fixed Wayland build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c
index f335fe2..7a777e1 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: