GLFW: Wayland: Fix scroll offsets being inverted

From upstream: f760b124ca.

This commit does not actually change any behaviour, it merely makes the code style of the two lines more similar to the new upstream code.
This commit is contained in:
Luflosi
2020-07-17 00:27:36 +02:00
parent a3fc3233cd
commit 1342767805

4
glfw/wl_init.c vendored
View File

@@ -337,9 +337,9 @@ static void pointerHandleAxis(void* data UNUSED,
axis == WL_POINTER_AXIS_VERTICAL_SCROLL);
if (axis == WL_POINTER_AXIS_HORIZONTAL_SCROLL)
x = wl_fixed_to_double(value) * -1;
x = -wl_fixed_to_double(value);
else if (axis == WL_POINTER_AXIS_VERTICAL_SCROLL)
y = wl_fixed_to_double(value) * -1;
y = -wl_fixed_to_double(value);
_glfwInputScroll(window, x, y, 1, _glfw.wl.xkb.states.modifiers);
}