removed flickering issue.

This commit is contained in:
Bryce Covert
2015-08-14 18:17:09 -07:00
parent 623f63c068
commit 95cdb05760
2 changed files with 12 additions and 10 deletions

View File

@@ -826,12 +826,7 @@ void main()
[x1 x2]))
(defn mouse-moved [{:keys [input-x input-y viewport] :as screen} [entities]]
(if (utils/contains-point? (.getScreenX viewport) (.getScreenY viewport)
(.getScreenWidth viewport) (.getScreenHeight viewport)
input-x input-y)
(utils/update-override screen (assoc-in entities [:cursor :last-pos] [input-x input-y]))
(assoc-in entities [:cursor :override] nil)))
(utils/update-override screen (assoc-in entities [:cursor :last-pos] [input-x input-y])))
(defscreen scene
:on-timer