mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 06:39:54 -04:00
Fix[glfw]: stubs for getMonitorContentScale
This commit is contained in:
parent
5a98a43d21
commit
0ee0dfecc2
@ -1300,17 +1300,26 @@ public class GLFW
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/** Array version of: {@link #glfwGetMonitorContentScale GetMonitorContentScale} */
|
/** Array version of: {@link #glfwGetMonitorContentScale GetMonitorContentScale} */
|
||||||
/*
|
|
||||||
public static void glfwGetMonitorContentScale(@NativeType("GLFWmonitor *") long monitor, @Nullable @NativeType("float *") float[] xscale, @Nullable @NativeType("float *") float[] yscale) {
|
public static void glfwGetMonitorContentScale(@NativeType("GLFWmonitor *") long monitor, @Nullable @NativeType("float *") float[] xscale, @Nullable @NativeType("float *") float[] yscale) {
|
||||||
long __functionAddress = Functions.GetMonitorContentScale;
|
|
||||||
if (CHECKS) {
|
if (CHECKS) {
|
||||||
// check(monitor);
|
// check(monitor);
|
||||||
checkSafe(xscale, 1);
|
checkSafe(xscale, 1);
|
||||||
checkSafe(yscale, 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} */
|
/** Array version of: {@link #glfwGetWindowPos GetWindowPos} */
|
||||||
public static void glfwGetWindowPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("int *") int[] xpos, @Nullable @NativeType("int *") int[] ypos) {
|
public static void glfwGetWindowPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("int *") int[] xpos, @Nullable @NativeType("int *") int[] ypos) {
|
||||||
@ -1370,7 +1379,7 @@ public class GLFW
|
|||||||
}
|
}
|
||||||
invokePPPV(window, xscale, yscale, __functionAddress);
|
invokePPPV(window, xscale, yscale, __functionAddress);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/** Array version of: {@link #glfwGetCursorPos GetCursorPos} */
|
/** Array version of: {@link #glfwGetCursorPos GetCursorPos} */
|
||||||
public static void glfwGetCursorPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("double *") double[] xpos, @Nullable @NativeType("double *") double[] ypos) {
|
public static void glfwGetCursorPos(@NativeType("GLFWwindow *") long window, @Nullable @NativeType("double *") double[] xpos, @Nullable @NativeType("double *") double[] ypos) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user