mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-15 11:00:09 -07:00
Change AWT Canvas size inside Display.create() (to force older MC versions to resize ASAP)
This commit is contained in:
parent
f0aad00211
commit
e264181356
2 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue