We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8af0c92 commit 9d52503Copy full SHA for 9d52503
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java
@@ -374,8 +374,8 @@ private void updateSizes() {
374
// framebuffer size (resolution) may differ from window size (e.g. HiDPI)
375
376
glfwGetWindowSize(window, width, height);
377
- int windowWidth = width[0];
378
- int windowHeight = height[0];
+ int windowWidth = width[0] < 1 ? 1 : width[0];
+ int windowHeight = height[0] < 1 ? 1 : height[0];
379
if (settings.getWindowWidth() != windowWidth
380
|| settings.getWindowHeight() != windowHeight) {
381
settings.setWindowSize(windowWidth, windowHeight);
0 commit comments