From 341a18d4d3d085b3c80ec8d64a86ebcbb1394a86 Mon Sep 17 00:00:00 2001 From: Tefek <493msi@gmail.com> Date: Wed, 21 Oct 2020 19:44:14 +0200 Subject: [PATCH] [PlutoCore] Cut down extremely long builder lines --- .../java/cz/tefek/pluto/PlutoApplication.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/plutocore/src/main/java/cz/tefek/pluto/PlutoApplication.java b/plutocore/src/main/java/cz/tefek/pluto/PlutoApplication.java index 3746b33..825bc9e 100644 --- a/plutocore/src/main/java/cz/tefek/pluto/PlutoApplication.java +++ b/plutocore/src/main/java/cz/tefek/pluto/PlutoApplication.java @@ -186,11 +186,25 @@ public abstract class PlutoApplication if (config.coreProfile) { - this.display = new DisplayBuilder().hintOpenGLVersion(config.majorOpenGLVersion, config.minorOpenGLVersion).hintDebugContext(Pluto.DEBUG_MODE).hintMSAA(config.windowMSAA).hintVisible(true).hintResizeable(config.windowResizable).setInitialSize(config.windowInitialWidth, config.windowInitialHeight).export(); + this.display = new DisplayBuilder() + .hintOpenGLVersion(config.majorOpenGLVersion, config.minorOpenGLVersion) + .hintDebugContext(Pluto.DEBUG_MODE) + .hintMSAA(config.windowMSAA) + .hintVisible(true) + .hintResizeable(config.windowResizable) + .setInitialSize(config.windowInitialWidth, config.windowInitialHeight) + .export(); } else { - this.display = new DisplayBuilder().hintOpenGLVersionLegacy(config.majorOpenGLVersion, config.minorOpenGLVersion).hintDebugContext(Pluto.DEBUG_MODE).hintMSAA(config.windowMSAA).hintVisible(true).hintResizeable(config.windowResizable).setInitialSize(config.windowInitialWidth, config.windowInitialHeight).export(); + this.display = new DisplayBuilder() + .hintOpenGLVersionLegacy(config.majorOpenGLVersion, config.minorOpenGLVersion) + .hintDebugContext(Pluto.DEBUG_MODE) + .hintMSAA(config.windowMSAA) + .hintVisible(true) + .hintResizeable(config.windowResizable) + .setInitialSize(config.windowInitialWidth, config.windowInitialHeight) + .export(); } this.display.create(config.windowName);