From bdc7f3347d20a05187a9a8f91bdba7aab849a1fd Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Fri, 31 May 2024 13:33:32 +0700 Subject: [PATCH] Workaround[GLFW]: stub glfwSetWindowSizeLimits This is sufficient to run 1.21-pre1 for now (#5516), need to update to LWJGL 3.3.1 eventually (#5517) --- jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java index b719848566..467593b427 100644 --- a/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java +++ b/jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java @@ -1030,6 +1030,9 @@ public static void glfwGetWindowSize(long window, IntBuffer width, IntBuffer hei if (height != null) height.put(internalGetWindow(window).height); } + public static void glfwSetWindowSizeLimits(@NativeType("GLFWwindow *") long window, int minwidth, int minheight, int maxwidth, int maxheight) { + } + public static void glfwSetWindowPos(long window, int x, int y) { internalGetWindow(window).x = x; internalGetWindow(window).y = y;