mirror of
https://github.com/GTNewHorizons/lwjgl3ify.git
synced 2026-11-20 12:19:39 +00:00
Tell Minecraft the initial framebuffer size on window creation
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user