summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-08-27 09:54:56 -0400
committerDavid Thompson <dthompson2@worcester.edu>2022-08-27 09:54:56 -0400
commit28ca2d7cd4e272f23fae62ead77bf06bb867ead6 (patch)
treea2c63340f8c01b0d7f711d14084f9c66f2e3329a
parent40468f62ae07d5b1b2e2e58bfdeda8af4203fd93 (diff)
graphics: path: Apply transformation matrix to path origin.
Fixes a bug where a path with no initial 'move-to' always has the first point at (0, 0) even if the transformation matrix includes a translation.
-rw-r--r--chickadee/graphics/path.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chickadee/graphics/path.scm b/chickadee/graphics/path.scm
index 30f759d..b14936f 100644
--- a/chickadee/graphics/path.scm
+++ b/chickadee/graphics/path.scm
@@ -727,7 +727,7 @@
(let loop ((commands (path-commands path))
(i 0)
(offset (compiled-path-point-count compiled-path))
- (brush %origin)
+ (brush (matrix3-transform matrix %origin))
(first #f))
(cond
((< i (vector-length commands))