File tree 2 files changed +10
-3
lines changed
adventure-editor/src/main/java/com/bladecoder/engineeditor
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,6 @@ public void create() {
58
58
EngineLogger .setDebug ();
59
59
}
60
60
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
-
64
61
skin = new BladeSkin (Gdx .files .internal (SKIN ));
65
62
VisUI .load ();
66
63
FileChooser .setDefaultPrefsName ("com.bladecoder.engineeditor.filechooser" );
Original file line number Diff line number Diff line change 22
22
import com .bladecoder .engineeditor .common .EditorLogger ;
23
23
import com .bladecoder .engineeditor .common .EditorLogger .Levels ;
24
24
import com .bladecoder .engineeditor .common .Versions ;
25
+ import org .lwjgl .glfw .GLFW ;
26
+ import org .lwjgl .glfw .GLFWVidMode ;
25
27
import org .lwjgl .system .Configuration ;
26
28
import org .lwjgl .system .macosx .LibC ;
27
29
28
30
import java .io .File ;
29
31
import java .util .ArrayList ;
30
32
import java .util .List ;
31
33
34
+ import static org .lwjgl .glfw .GLFW .glfwGetPrimaryMonitor ;
35
+ import static org .lwjgl .glfw .GLFW .glfwGetVideoMode ;
36
+
32
37
public class Main extends Lwjgl3Application {
33
38
34
39
private final static Lwjgl3ApplicationConfiguration cfg = new Lwjgl3ApplicationConfiguration ();
@@ -59,6 +64,11 @@ public static void main(final String[] args) {
59
64
cfg .setWindowIcon (FileType .Internal , iconList .toArray (new String [0 ]));
60
65
cfg .setOpenGLEmulation (Lwjgl3ApplicationConfiguration .GLEmulation .GL20 , 0 , 0 );
61
66
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
+
62
72
parseArgs (args );
63
73
64
74
new Main (new Editor (), cfg );
You can’t perform that action at this time.
0 commit comments