Explorar el Código

Hopefully fixed Wayland build

Sam Lantinga hace 8 años
padre
commit
1d0584d558
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/video/wayland/SDL_waylandevents.c

+ 2 - 2
src/video/wayland/SDL_waylandevents.c

@@ -237,10 +237,10 @@ pointer_handle_axis_common(struct SDL_WaylandInput *input,
         switch (a) {
         switch (a) {
             case WL_POINTER_AXIS_VERTICAL_SCROLL:
             case WL_POINTER_AXIS_VERTICAL_SCROLL:
                 x = 0;
                 x = 0;
-                y = wl_fixed_to_float(value);
+                y = (float)wl_fixed_to_double(value);
                 break;
                 break;
             case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
             case WL_POINTER_AXIS_HORIZONTAL_SCROLL:
-                x = wl_fixed_to_float(value);
+                x = (float)wl_fixed_to_double(value);
                 y = 0;
                 y = 0;
                 break;
                 break;
             default:
             default: