Update Display.java
This commit is contained in:
parent
d9a6c05240
commit
33827687bb
1 changed files with 2 additions and 2 deletions
|
@ -92,8 +92,8 @@ public class Display {
|
||||||
IntBuffer w = BufferUtils.createIntBuffer(1);
|
IntBuffer w = BufferUtils.createIntBuffer(1);
|
||||||
IntBuffer h = BufferUtils.createIntBuffer(1);
|
IntBuffer h = BufferUtils.createIntBuffer(1);
|
||||||
glfwGetWindowSize(window, w, h);
|
glfwGetWindowSize(window, w, h);
|
||||||
int width = w.getInt(0);
|
int width = w.get(0);
|
||||||
int height = h.getInt(0);
|
int height = h.get(0);
|
||||||
|
|
||||||
if(Display.getDisplayMode().getWidth() != width || Display.getDisplayMode().getHeight() != height || hasResized){
|
if(Display.getDisplayMode().getWidth() != width || Display.getDisplayMode().getHeight() != height || hasResized){
|
||||||
setDisplayMode(new DisplayMode(width, height));
|
setDisplayMode(new DisplayMode(width, height));
|
||||||
|
|
Reference in a new issue