Completely fixed monitor size is 0x0 (Forge mouse input should work rn)

This commit is contained in:
khanhduytran0 committed 2021-02-21 07:44:51 +07:00
1 parent 39b21f6380
commit d4b962ae75
5 files changed
+45 -40

No files matched your search

+9 -3
View File
@@ -73,8 +73,14 @@ public class HelloWorld {
// Get the resolution of the primary monitor
GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor());
System.out.println("Actual width=" + vidmode.width() + ", height=" + vidmode.height());
System.out.println("MONITOR SPEC");
System.out.println("width=" + vidmode.width());
System.out.println("height=" + vidmode.height());
System.out.println("red=" + vidmode.redBits());
System.out.println("green=" + vidmode.greenBits());
System.out.println("blue=" + vidmode.blueBits());
System.out.println("refresh=" + vidmode.refreshRate());
// Center the window
glfwSetWindowPos(
@@ -135,4 +141,4 @@ public class HelloWorld {
new HelloWorld().run();
}
}
}