fixed window positioning

pull/7/head
hYdos 2020-02-25 19:48:41 +10:00
parent 807e724392
commit 4ef88b50cd
2 changed files with 1 additions and 2 deletions

View File

@ -102,7 +102,6 @@ public class Litecraft extends Game
TextureButton playButton = ginger3D.gingerRegister.guiButtons.get(0); TextureButton playButton = ginger3D.gingerRegister.guiButtons.get(0);
boolean isClicked = playButton.isClicked(); boolean isClicked = playButton.isClicked();
playButton.update(); playButton.update();
text.setText(isClicked + "");
if (isClicked) if (isClicked)
{ {
Window.lockMouse(); Window.lockMouse();

View File

@ -56,7 +56,7 @@ public class Window
GLFW.glfwMakeContextCurrent(window); GLFW.glfwMakeContextCurrent(window);
glContext = GL.createCapabilities(); glContext = GL.createCapabilities();
GL11.glEnable(GL11.GL_DEPTH_TEST); GL11.glEnable(GL11.GL_DEPTH_TEST);
GLFW.glfwSetWindowPos(window, (vidmode.width() - width) / 2, (vidmode.height() - height) / 2); GLFW.glfwSetWindowPos(window, (vidmode.width() - actuallWidth) / 2, (vidmode.height() - actuallHeight) / 2);
GLFW.glfwShowWindow(window); GLFW.glfwShowWindow(window);
time = getTime(); time = getTime();
getCurrentTime(); getCurrentTime();