summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/render/texture.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/render/texture.scm b/chickadee/render/texture.scm
index 5c8ea7b..63f5eaa 100644
--- a/chickadee/render/texture.scm
+++ b/chickadee/render/texture.scm
@@ -289,8 +289,8 @@ around its border.
This type of texture atlas layout is very common for tile map
terrain."
(let* ((r (texture-rect texture))
- (w (rect-width r))
- (h (rect-height r))
+ (w (inexact->exact (rect-width r)))
+ (h (inexact->exact (rect-height r)))
(sw (/ tile-width w))
(th (/ tile-height h))
(rows (/ (- h margin) (+ tile-height spacing)))