fixed window positioning
parent
807e724392
commit
4ef88b50cd
|
@ -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();
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue