File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
adventure-editor/src/main/java/com/bladecoder/engineeditor Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,6 @@ public void create() {
5858 EngineLogger .setDebug ();
5959 }
6060
61- Gdx .graphics .setWindowedMode (Math .max ((int ) (Gdx .graphics .getDisplayMode ().width * 0.9 ), 1920 / 2 ),
62- Math .max ((int ) (Gdx .graphics .getDisplayMode ().height * 0.9 ), 1080 / 2 ));
63-
6461 skin = new BladeSkin (Gdx .files .internal (SKIN ));
6562 VisUI .load ();
6663 FileChooser .setDefaultPrefsName ("com.bladecoder.engineeditor.filechooser" );
Original file line number Diff line number Diff line change 2222import com .bladecoder .engineeditor .common .EditorLogger ;
2323import com .bladecoder .engineeditor .common .EditorLogger .Levels ;
2424import com .bladecoder .engineeditor .common .Versions ;
25+ import org .lwjgl .glfw .GLFW ;
26+ import org .lwjgl .glfw .GLFWVidMode ;
2527import org .lwjgl .system .Configuration ;
2628import org .lwjgl .system .macosx .LibC ;
2729
2830import java .io .File ;
2931import java .util .ArrayList ;
3032import java .util .List ;
3133
34+ import static org .lwjgl .glfw .GLFW .glfwGetPrimaryMonitor ;
35+ import static org .lwjgl .glfw .GLFW .glfwGetVideoMode ;
36+
3237public class Main extends Lwjgl3Application {
3338
3439 private final static Lwjgl3ApplicationConfiguration cfg = new Lwjgl3ApplicationConfiguration ();
@@ -59,6 +64,11 @@ public static void main(final String[] args) {
5964 cfg .setWindowIcon (FileType .Internal , iconList .toArray (new String [0 ]));
6065 cfg .setOpenGLEmulation (Lwjgl3ApplicationConfiguration .GLEmulation .GL20 , 0 , 0 );
6166
67+ GLFW .glfwInit ();
68+ GLFWVidMode glfwGetVideoMode = glfwGetVideoMode (glfwGetPrimaryMonitor ());
69+ cfg .setWindowedMode (Math .max ((int ) (glfwGetVideoMode .width () * 0.9 ), 1920 / 2 ),
70+ Math .max ((int ) (glfwGetVideoMode .height () * 0.9 ), 1080 / 2 ));
71+
6272 parseArgs (args );
6373
6474 new Main (new Editor (), cfg );
You can’t perform that action at this time.
0 commit comments