Skip to content

Commit

Permalink
Hopefully fixed Wayland build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 15, 2017
1 parent a4cfa93 commit 1d0584d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/wayland/SDL_waylandevents.c
Expand Up @@ -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:
Expand Down

0 comments on commit 1d0584d

Please sign in to comment.