Skip to content

Commit

Permalink
Workaround[GLFW]: stub glfwSetWindowSizeLimits
Browse files Browse the repository at this point in the history
This is sufficient to run 1.21-pre1 for now (PojavLauncherTeam#5516), need to update to LWJGL 3.3.1 eventually (PojavLauncherTeam#5517)
  • Loading branch information
khanhduytran0 authored May 31, 2024
1 parent 94bc4eb commit bdc7f33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bdc7f33

Please sign in to comment.