Skip to content

Commit a1a7d4b

Browse files
committed
Fix small font size error.
1 parent 725226f commit a1a7d4b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

adventure-editor/src/main/java/com/bladecoder/engineeditor/Editor.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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");

adventure-editor/src/main/java/com/bladecoder/engineeditor/Main.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@
2222
import com.bladecoder.engineeditor.common.EditorLogger;
2323
import com.bladecoder.engineeditor.common.EditorLogger.Levels;
2424
import com.bladecoder.engineeditor.common.Versions;
25+
import org.lwjgl.glfw.GLFW;
26+
import org.lwjgl.glfw.GLFWVidMode;
2527
import org.lwjgl.system.Configuration;
2628
import org.lwjgl.system.macosx.LibC;
2729

2830
import java.io.File;
2931
import java.util.ArrayList;
3032
import java.util.List;
3133

34+
import static org.lwjgl.glfw.GLFW.glfwGetPrimaryMonitor;
35+
import static org.lwjgl.glfw.GLFW.glfwGetVideoMode;
36+
3237
public 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);

0 commit comments

Comments
 (0)