Hard to believe, but I think fullscreen truly works, even through sleep.
This commit is contained in:
@@ -23,19 +23,20 @@
|
||||
(when port (start-nrepl-expr (Integer/parseInt port)))
|
||||
(catch Exception e))
|
||||
(let [cfg (LwjglApplicationConfiguration.)]
|
||||
(if false
|
||||
(if true
|
||||
(do
|
||||
(set! (.width cfg) (doto (.width (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
||||
(set! (.height cfg) (doto (.height (LwjglApplicationConfiguration/getDesktopDisplayMode)) println))
|
||||
#_(set! (.resizable cfg) false)
|
||||
(set! (.useHDPI cfg) true)
|
||||
(set! (.resizable cfg) true)
|
||||
(set! (.useHDPI cfg) false)
|
||||
(set! (.fullscreen cfg) true))
|
||||
(do
|
||||
(set! (.width cfg) 1280)
|
||||
(set! (.height cfg) 960)))
|
||||
(set! (.foregroundFPS cfg) 60)
|
||||
(set! (.backgroundFPS cfg) 60)
|
||||
(System/setProperty "org.lwjgl.opengl.Display.enableHighDPI" "true")
|
||||
(System/setProperty "org.lwjgl.opengl.Display.enableHighDPI" "false")
|
||||
(System/setProperty "org.lwjgl.opengl.Display.disableOSXFullscreenModeAPI" "true")
|
||||
#_(System/setProperty "org.lwjgl.opengl.Window.undecorated", "true")
|
||||
|
||||
(LwjglApplication. advent cfg))
|
||||
|
||||
Reference in New Issue
Block a user