fixed window positioning
parent
807e724392
commit
4ef88b50cd
|
@ -102,7 +102,6 @@ public class Litecraft extends Game
|
|||
TextureButton playButton = ginger3D.gingerRegister.guiButtons.get(0);
|
||||
boolean isClicked = playButton.isClicked();
|
||||
playButton.update();
|
||||
text.setText(isClicked + "");
|
||||
if (isClicked)
|
||||
{
|
||||
Window.lockMouse();
|
||||
|
|
|
@ -56,7 +56,7 @@ public class Window
|
|||
GLFW.glfwMakeContextCurrent(window);
|
||||
glContext = GL.createCapabilities();
|
||||
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);
|
||||
time = getTime();
|
||||
getCurrentTime();
|
||||
|
|
Loading…
Reference in New Issue