Skip to content

Commit

Permalink
Fix[glfw]: stubs for getMonitorContentScale
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Feb 4, 2025
1 parent 5a98a43 commit 0ee0dfe
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions jre_lwjgl3glfw/src/main/java/org/lwjgl/glfw/GLFW.java
Original file line number Diff line number Diff line change
Expand Up @@ -1300,17 +1300,26 @@ public static void glfwGetMonitorPhysicalSize(@NativeType("GLFWmonitor *") long
*/

/** Array version of: {@link #glfwGetMonitorContentScale GetMonitorContentScale} */
/*

public static void glfwGetMonitorContentScale(@NativeType("GLFWmonitor *") long monitor, @Nullable @NativeType("float *") float[] xscale, @Nullable @NativeType("float *") float[] yscale) {
long __functionAddress = Functions.GetMonitorContentScale;
if (CHECKS) {
// check(monitor);
checkSafe(xscale, 1);
checkSafe(yscale, 1);
}
invokePPPV(monitor, xscale, yscale, __functionAddress);
xscale[0] = 1;
yscale[0] = 1;
}

public static void glfwGetMonitorContentScale(@NativeType("GLFWmonitor *") long monitor, @NativeType("float *") @Nullable FloatBuffer xscale, @NativeType("float *") @Nullable FloatBuffer yscale) {
if (CHECKS) {
// check(monitor);
checkSafe(xscale, 1);
checkSafe(yscale, 1);
}
xscale.put(0, 1);
yscale.put(0, 1);
}
*/

/** Array version of: {@link #glfwGetWindowPos GetWindowPos} */
public static void glfwGetWindowPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("int *") int[] xpos, @Nullable @NativeType("int *") int[] ypos) {
Expand Down Expand Up @@ -1370,7 +1379,7 @@ public static void glfwGetWindowContentScale(@NativeType("GLFWwindow *") long wi
}
invokePPPV(window, xscale, yscale, __functionAddress);
}
*/
/** Array version of: {@link #glfwGetCursorPos GetCursorPos} */
public static void glfwGetCursorPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("double *") double[] xpos, @Nullable @NativeType("double *") double[] ypos) {
Expand Down

0 comments on commit 0ee0dfe

Please sign in to comment.