Change AWT Canvas size inside Display.create() (to force older MC versions to resize ASAP)

This commit is contained in:
artdeell 2023-01-31 07:33:18 +03:00
parent f0aad00211
commit e264181356
2 changed files with 2 additions and 5 deletions

View file

@ -417,7 +417,7 @@ public class Display {
//glfwSwapInterval(0);
glfwShowWindow(Window.handle);
if(parent != null) parent.setSize(displayWidth, displayHeight);
Mouse.create();
Keyboard.create();
@ -954,7 +954,7 @@ public class Display {
}
public static void setResizable(boolean resizable) {
displayResizable = resizable;
//displayResizable = resizable;
if (displayResizable ^ resizable) {
if (Window.handle != 0) {
IntBuffer width = BufferUtils.createIntBuffer(1);