summaryrefslogtreecommitdiff
path: root/sly/render/sprite.scm
diff options
context:
space:
mode:
Diffstat (limited to 'sly/render/sprite.scm')
-rw-r--r--sly/render/sprite.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sly/render/sprite.scm b/sly/render/sprite.scm
index ace9373..9bd487a 100644
--- a/sly/render/sprite.scm
+++ b/sly/render/sprite.scm
@@ -53,8 +53,8 @@
size of the mesh is the size of TEXTURE, in pixels. Optionally, a
custom SHADER can be specified."
(let* ((anchor (anchor-texture texture anchor))
- (x1 (- (vx anchor)))
- (y1 (- (vy anchor)))
+ (x1 (- (floor (vx anchor))))
+ (y1 (- (floor (vy anchor))))
(x2 (+ x1 (texture-width texture)))
(y2 (+ y1 (texture-height texture)))
(s1 (texture-s1 texture))