1
0
Fork 0

Update Display.java

This commit is contained in:
mrdev023 2016-08-28 21:30:38 +02:00 committed by GitHub
parent d9a6c05240
commit 33827687bb

View file

@ -92,8 +92,8 @@ public class Display {
IntBuffer w = BufferUtils.createIntBuffer(1);
IntBuffer h = BufferUtils.createIntBuffer(1);
glfwGetWindowSize(window, w, h);
int width = w.getInt(0);
int height = h.getInt(0);
int width = w.get(0);
int height = h.get(0);
if(Display.getDisplayMode().getWidth() != width || Display.getDisplayMode().getHeight() != height || hasResized){
setDisplayMode(new DisplayMode(width, height));