Fix(input_bridge): crash due to window resize called in wrong way

Actually, this pick up changes in
https://github.com/PojavLauncherTeam/PojavLauncher/commit/e2641813562c8
4290281c9f01d560ebca39ad595
This commit is contained in:
Duy Tran Khanh committed 2023-01-31 21:19:47 +07:00
1 parent d94fc6a9ac
commit 54a7f2b152
2 files changed
+2 -3

No files matched your search

@@ -417,6 +417,7 @@ public class Display {
//glfwSwapInterval(0);
glfwShowWindow(Window.handle);
if(parent != null) parent.setSize(displayWidth, displayHeight);
Mouse.create();
Keyboard.create();
@@ -953,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);