prepping for inventory rehash.
This commit is contained in:
@@ -451,29 +451,26 @@
|
||||
(do
|
||||
(log/info "Making windowed 800x600 decorated window")
|
||||
(System/setProperty "org.lwjgl.opengl.Window.undecorated", "false")
|
||||
(.setDisplayMode Gdx/graphics 800 600 false)))
|
||||
(.setFullscreenMode Gdx/graphics 800 600)))
|
||||
|
||||
(defmethod make-fullscreen :linux []
|
||||
(let [width (-> Gdx/graphics .getDesktopDisplayMode .width)
|
||||
height (-> Gdx/graphics .getDesktopDisplayMode .height)]
|
||||
(let [width (-> Gdx/graphics .getDisplayMode .width)
|
||||
height (-> Gdx/graphics .getDisplayMode .height)]
|
||||
(log/info "Making fullscreen " width "x" height " as undecorated window")
|
||||
(System/setProperty "org.lwjgl.opengl.Window.undecorated", "true")
|
||||
(.setDisplayMode Gdx/graphics
|
||||
(.setFullscreenMode Gdx/graphics
|
||||
width
|
||||
height
|
||||
false)))
|
||||
height)))
|
||||
|
||||
(defmethod is-fullscreen? :linux []
|
||||
(= "true" (System/getProperty "org.lwjgl.opengl.Window.undecorated")))
|
||||
|
||||
(defn make-fullscreen-normal []
|
||||
(let [width (-> Gdx/graphics .getDesktopDisplayMode .width)
|
||||
height (-> Gdx/graphics .getDesktopDisplayMode .height)]
|
||||
(let [width (-> Gdx/graphics .getDisplayMode .width)
|
||||
height (-> Gdx/graphics .getDisplayMode .height)]
|
||||
(log/info "Making fullscreen " width "x" height " as true fullscreen")
|
||||
(.setDisplayMode Gdx/graphics
|
||||
width
|
||||
height
|
||||
true)
|
||||
(.setFullscreenMode Gdx/graphics
|
||||
(.getDisplayMode Gdx/graphics))
|
||||
(set! (.foregroundFPS (-> (class Gdx/graphics)
|
||||
(.getDeclaredField (name "config"))
|
||||
(doto (.setAccessible true))
|
||||
|
||||
Reference in New Issue
Block a user