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))
(.height (.getDesktopDisplayMode Gdx/graphics))
true)
(set! (.foregroundFPS (-> (class Gdx/graphics)
(.getDeclaredField (name "config"))
(doto (.setAccessible true))
(.get Gdx/graphics))) 60 )
(.getDeclaredField (name "config"))
(doto (.setAccessible true))
(.get Gdx/graphics))) 60 )
(label! (:fullscreen entities) set-text "Fullscreen")))
:else
nil))))