gnarly hack to make FPS work okay in full screen.

This commit is contained in:
2015-07-28 00:37:14 -07:00
parent 7c962bdd32
commit cca681adeb
6 changed files with 21 additions and 10 deletions

View File

@@ -207,6 +207,11 @@
(.width (.getDesktopDisplayMode Gdx/graphics))
(.height (.getDesktopDisplayMode Gdx/graphics))
true)
(set! (.foregroundFPS (-> (class Gdx/graphics)
(.getDeclaredField (name "config"))
(doto (.setAccessible true))
(.get Gdx/graphics))) 60 )
(label! (:fullscreen entities) set-text "Fullscreen")))
:else
nil))))
@@ -214,3 +219,5 @@
:on-resize (fn [{:keys [viewport width height]} [entities]]
(.update viewport width height)
nil))