[Commits] SDL: Hopefully fixed Wayland build

libsdl.org revision control commits-owner at libsdl.org
Mon Aug 14 21:35:19 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/68c83ddf9096
changeset: 11301:68c83ddf9096
user:      Sam Lantinga <slouken at libsdl.org>
date:      Mon Aug 14 21:35:16 2017 -0700
description:
Hopefully fixed Wayland build

diffstat:

 src/video/wayland/SDL_waylandevents.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 68a80d7afec3 -r 68c83ddf9096 src/video/wayland/SDL_waylandevents.c
--- a/src/video/wayland/SDL_waylandevents.c	Mon Aug 14 21:28:04 2017 -0700
+++ b/src/video/wayland/SDL_waylandevents.c	Mon Aug 14 21:35:16 2017 -0700
@@ -237,10 +237,10 @@
         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:


More information about the commits mailing list