aboutsummaryrefslogtreecommitdiff
path: root/src/svg_pattern.cpp
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-01-27 01:26:54 +0100
committerjaseg <git@jaseg.de>2021-01-27 01:26:54 +0100
commit9711fabab7893fcdd0a5708c79a7d48f2ad15167 (patch)
treea0af6000c47a5acc1b7ac8f6c802529b8af43f97 /src/svg_pattern.cpp
parent5285b6dce8f0df37282b744ce625d4976b0f2541 (diff)
downloadgerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.tar.gz
gerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.tar.bz2
gerbolyze-9711fabab7893fcdd0a5708c79a7d48f2ad15167.zip
WIP render settings
Diffstat (limited to 'src/svg_pattern.cpp')
-rw-r--r--src/svg_pattern.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg_pattern.cpp b/src/svg_pattern.cpp
index b7eec2e..b62df28 100644
--- a/src/svg_pattern.cpp
+++ b/src/svg_pattern.cpp
@@ -47,7 +47,7 @@ gerbolyze::Pattern::Pattern(const pugi::xml_node &node, SVGDocument &doc) : _nod
/* Tile pattern into gerber. Note that this function may be called several times in case the pattern is
* referenced from multiple places, so we must not clobber any of the object's state. */
-void gerbolyze::Pattern::tile (ClipperLib::Paths &clip) {
+void gerbolyze::Pattern::tile (const gerbolyze::RenderSettings &rset, ClipperLib::Paths &clip) {
assert(doc);
cairo_t *cr = doc->cairo();
assert(cr);
@@ -104,7 +104,7 @@ void gerbolyze::Pattern::tile (ClipperLib::Paths &clip) {
}
/* Export the pattern tile's content like a group */
- doc->export_svg_group(_node, clip);
+ doc->export_svg_group(rset, _node, clip);
cairo_restore(cr);
}
}