mirror of
https://github.com/yawut/SDL.git
synced 2026-04-18 22:57:25 -05:00
Hopefully fixed Wayland build
This commit is contained in:
parent
6f44ae30a4
commit
0cddaf4b6d
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user