From da2603ea6d38cccd4d25a76604f5ef268cabfc15 Mon Sep 17 00:00:00 2001 From: Maksim Belov <45949002+artdeell@users.noreply.github.com> Date: Wed, 20 Nov 2024 22:12:37 +0300 Subject: [PATCH] Update Display.java --- .../lwjgl/lwjglx/src/main/java/org/lwjgl/opengl/Display.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/opengl/Display.java b/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/opengl/Display.java index 36eefc73c3..122af2c8ca 100644 --- a/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/opengl/Display.java +++ b/modules/lwjgl/lwjglx/src/main/java/org/lwjgl/opengl/Display.java @@ -305,7 +305,7 @@ public void invoke(long window, boolean entered) { Window.cursorPosCallback = new GLFWCursorPosCallback() { @Override public void invoke(long window, double xpos, double ypos) { - GLFWInputImplementation.singleton.putMouseEventWithCoords((byte)-1, (byte)0,(int)xpos,(int)((ypos - Display.getHeight())*-1),0,Sys.getNanoTime()); + GLFWInputImplementation.singleton.putMouseEventWithCoords((byte)-1, (byte)0,(int)xpos,(int)ypos,0,Sys.getNanoTime()); } };