From 28ca2d7cd4e272f23fae62ead77bf06bb867ead6 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 27 Aug 2022 09:54:56 -0400 Subject: 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. --- chickadee/graphics/path.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3