defaults to fullscreen.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
(ns advent.core.desktop-launcher
|
||||
(:require [advent.core :refer :all]
|
||||
[advent.utils :as utils]
|
||||
#_[clojure.tools.nrepl.server])
|
||||
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication LwjglApplicationConfiguration]
|
||||
[org.lwjgl.input Keyboard]
|
||||
@@ -39,7 +40,12 @@
|
||||
(System/setProperty "org.lwjgl.opengl.Display.disableOSXFullscreenModeAPI" "true")
|
||||
#_(System/setProperty "org.lwjgl.opengl.Window.undecorated", "true")
|
||||
|
||||
(LwjglApplication. advent cfg))
|
||||
(let [app (LwjglApplication. advent cfg)]
|
||||
(when (utils/has-saved-settings?)
|
||||
(utils/load-settings!))
|
||||
(utils/set-fullscreen! (:fullscreen @utils/settings))
|
||||
|
||||
app))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user