summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/render/tileset.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sly/render/tileset.scm b/sly/render/tileset.scm
index e8058e8..9e136fb 100644
--- a/sly/render/tileset.scm
+++ b/sly/render/tileset.scm
@@ -58,8 +58,8 @@ TEXTURE before the first tile begins."
(let* ((tw (texture-width texture))
(th (texture-height texture))
- (rows (/ (- tw margin) (+ width spacing)))
- (columns (/ (- th margin) (+ height spacing))))
+ (rows (/ (- th margin) (+ height spacing)))
+ (columns (/ (- tw margin) (+ width spacing))))
(vector-ec (: y rows) (: x columns) (build-tile x y))))
(define* (make-tileset texture width height