Use width/height provided by the launcher.

Closes #12
This commit is contained in:
Raven Szewczyk committed 2023-02-02 19:36:59 +00:00
1 parent ce13587a42
commit 10a47eb89d
2 files changed
+3 -7

No files matched your search

+3 -3
View File
@@ -36,8 +36,8 @@ public class Display {
private static boolean displayResizable = false;
private static boolean startFullscreen = false;
private static DisplayMode mode = new DisplayMode(640, 480);
private static DisplayMode desktopDisplayMode = new DisplayMode(640, 480);
private static DisplayMode mode = new DisplayMode(854, 480);
private static DisplayMode desktopDisplayMode = new DisplayMode(854, 480);
private static int latestEventKey = 0;
@@ -135,7 +135,7 @@ public class Display {
glfwWindowHintString(GLFW_X11_CLASS_NAME, Config.X11_CLASS_NAME);
glfwWindowHintString(GLFW_COCOA_FRAME_NAME, Config.COCOA_FRAME_NAME);
Window.handle = glfwCreateWindow(Config.WINDOW_WIDTH, Config.WINDOW_HEIGHT, windowTitle, NULL, NULL);
Window.handle = glfwCreateWindow(mode.getWidth(), mode.getHeight(), windowTitle, NULL, NULL);
if (Window.handle == 0L) {
throw new IllegalStateException("Failed to create Display window");
}