mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06: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
|
|
@ -252,14 +252,11 @@ JNIEXPORT jstring JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeClipboard(JNI
|
|||
return pasteDst;
|
||||
}
|
||||
|
||||
void Java_org_lwjgl_glfw_CallbackBridge_nativeSendScreenSize(JNIEnv* env, jclass clazz, jint width, jint height);
|
||||
|
||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSetInputReady(JNIEnv* env, jclass clazz, jboolean inputReady) {
|
||||
#ifdef DEBUG
|
||||
LOGD("Debug: Changing input state, isReady=%d, isUseStackQueueCall=%d\n", inputReady, isUseStackQueueCall);
|
||||
#endif
|
||||
isInputReady = inputReady;
|
||||
if(isInputReady) Java_org_lwjgl_glfw_CallbackBridge_nativeSendScreenSize(NULL, NULL, savedWidth, savedHeight);
|
||||
return isUseStackQueueCall;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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