mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Tab -> spaces; Set win size also set monitor size
This commit is contained in:
parent
9bc686b591
commit
871e97fe9c
@ -638,6 +638,13 @@ public class GLFW
|
||||
return GLFW;
|
||||
}
|
||||
|
||||
public static void internalChangeMonitorSize(int width, int height) {
|
||||
mGLFWWindowWidth = width;
|
||||
mGLFWWindowHeight = height;
|
||||
memPutInt(mGLFWVideoMode.address() + (long) mGLFWVideoMode.WIDTH, mGLFWWindowWidth);
|
||||
memPutInt(mGLFWVideoMode.address() + (long) mGLFWVideoMode.HEIGHT, mGLFWWindowHeight);
|
||||
}
|
||||
|
||||
public static GLFWWindowProperties internalGetWindow(long window) {
|
||||
GLFWWindowProperties win = mGLFWWindowMap.get(window);
|
||||
if (win == null) {
|
||||
@ -1118,8 +1125,7 @@ public class GLFW
|
||||
break;
|
||||
case CallbackBridge.EVENT_TYPE_FRAMEBUFFER_SIZE:
|
||||
case CallbackBridge.EVENT_TYPE_WINDOW_SIZE:
|
||||
mGLFWWindowWidth = dataArr[1];
|
||||
mGLFWWindowHeight = dataArr[2];
|
||||
internalChangeMonitorSize(dataArr[1], dataArr[2]);
|
||||
glfwSetWindowSize(ptr, mGLFWWindowWidth, mGLFWWindowHeight);
|
||||
if (dataArr[0] == CallbackBridge.EVENT_TYPE_FRAMEBUFFER_SIZE && mGLFWFramebufferSizeCallback != null) {
|
||||
mGLFWFramebufferSizeCallback.invoke(ptr, mGLFWWindowWidth, mGLFWWindowHeight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user