|
@@ -287,7 +287,7 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
|
|
final GLFWVidMode videoMode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
|
final GLFWVidMode videoMode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
|
int requestWidth = settings.getWindowWidth();
|
|
int requestWidth = settings.getWindowWidth();
|
|
int requestHeight = settings.getWindowHeight();
|
|
int requestHeight = settings.getWindowHeight();
|
|
- if (requestWidth <= 0 || requestWidth <= 0) {
|
|
|
|
|
|
+ if (requestWidth <= 0 || requestHeight <= 0) {
|
|
requestWidth = videoMode.width();
|
|
requestWidth = videoMode.width();
|
|
requestHeight = videoMode.height();
|
|
requestHeight = videoMode.height();
|
|
}
|
|
}
|