Save window size before shutdown
@@ -177,6 +177,10 @@ public void preShutdown() {
if (Display.isCreated() && !Display.isFullscreen() && Display.isVisible()) {
config.setWindowPosX(Display.getX());
config.setWindowPosY(Display.getY());
+
+ config.setWindowWidth(Display.getWidth());
+ config.setWindowHeight(Display.getHeight());
+
}
}
