Tell Minecraft the initial framebuffer size on window creation

This commit is contained in:
Raven Szewczyk committed 2023-02-11 21:57:09 +00:00
1 parent 6cf4958efa
commit 936ab4e55c
1 file changed
+6
@@ -319,6 +319,12 @@ public class Display {
if (startFullscreen) {
setFullscreen(true);
}
int[] x = new int[1], y = new int[1];
GLFW.glfwGetWindowSize(Window.handle, x, y);
Window.windowSizeCallback.invoke(Window.handle, x[0], y[0]);
GLFW.glfwGetFramebufferSize(Window.handle, x, y);
Window.framebufferSizeCallback.invoke(Window.handle, x[0], y[0]);
}
public static boolean isCreated() {