updated cursor

This commit is contained in:
Bryce Covert
2016-02-15 22:25:11 -08:00
parent 24fc3ed055
commit 8a05f8c32a
4 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@
:opacity 0.7
:origin-x 0
:origin-y 0)
:all-items (texture! (texture (pixmap "cursor.png")) :split 16 16)
:all-items (texture! (texture (pixmap "cursor.png")) :split 18 16)
:items []
:shown? false
:highlighted-item nil
@@ -119,7 +119,7 @@
base-y (* 180 4)
x (+ base-x (* column (* 24 4)))
y (- base-y (* row (* 24 4)))
item-width 16
item-width 18
offset-x (+ x (/ item-width 2))
offset-y (+ y (/ item-width 2))
padding (/ item-width 2)

View File

@@ -53,7 +53,7 @@
resized (Pixmap. target-width target-height (.getFormat base-cursor))
index (.indexOf +all-cursors+ which)]
(Pixmap/setFilter Pixmap$Filter/NearestNeighbour)
(pixmap! resized :draw-pixmap base-cursor (* index 16) 0 16 16
(pixmap! resized :draw-pixmap base-cursor (* index 18) 0 16 16
0 0 target-width target-height)
resized ))