Get Minecraft 1.13.2 and below to works

This commit is contained in:
khanhduytran0 committed 2021-02-18 06:47:15 +07:00
1 parent 724829d164
commit a4a5abba09
1 file changed
+7 -2
@@ -72,11 +72,16 @@ public class Display {
static {
Sys.initialize(); // init using dummy sys method
GLFWVidMode.WIDTH = GLFW.mGLFWWindowWidth;
GLFWVidMode.HEIGHT = GLFW.mGLFWWindowHeight;
long monitor = glfwGetPrimaryMonitor();
GLFWVidMode vidmode = glfwGetVideoMode(monitor);
int monitorWidth = displayWidth = displayFramebufferWidth = vidmode.width();
int monitorHeight = displayHeight = displayFramebufferHeight = vidmode.height();
int monitorWidth = displayWidth = displayFramebufferWidth = GLFW.mGLFWWindowWidth;
// vidmode.width();
int monitorHeight = displayHeight = displayFramebufferHeight = GLFW.mGLFWWindowHeight;
// vidmode.height();
int monitorBitPerPixel = vidmode.redBits() + vidmode.greenBits() + vidmode.blueBits();
int monitorRefreshRate = vidmode.refreshRate();