gnarly hack to make FPS work okay in full screen.

This commit is contained in:
2015-07-28 00:37:28 -07:00
parent cca681adeb
commit 9500c2a4d1

View File

@@ -207,11 +207,10 @@
(.width (.getDesktopDisplayMode Gdx/graphics)) (.width (.getDesktopDisplayMode Gdx/graphics))
(.height (.getDesktopDisplayMode Gdx/graphics)) (.height (.getDesktopDisplayMode Gdx/graphics))
true) true)
(set! (.foregroundFPS (-> (class Gdx/graphics) (set! (.foregroundFPS (-> (class Gdx/graphics)
(.getDeclaredField (name "config")) (.getDeclaredField (name "config"))
(doto (.setAccessible true)) (doto (.setAccessible true))
(.get Gdx/graphics))) 60 ) (.get Gdx/graphics))) 60 )
(label! (:fullscreen entities) set-text "Fullscreen"))) (label! (:fullscreen entities) set-text "Fullscreen")))
:else :else
nil)))) nil))))