From e6dd695fc757b59571f67a278e4d88ad54cd36ae Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 15 Sep 2021 19:23:45 +0800 Subject: ... --- src/osx/graphics/quartz/Geometry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/osx/graphics/quartz/Geometry.cpp') diff --git a/src/osx/graphics/quartz/Geometry.cpp b/src/osx/graphics/quartz/Geometry.cpp index 79e6fbb1..4ad9a7f3 100644 --- a/src/osx/graphics/quartz/Geometry.cpp +++ b/src/osx/graphics/quartz/Geometry.cpp @@ -3,7 +3,7 @@ #include namespace cru::platform::graphics::osx::quartz { -QuartzGeometry::QuartzGeometry(IGraphFactory *graphics_factory, +QuartzGeometry::QuartzGeometry(IGraphicsFactory *graphics_factory, CGPathRef cg_path) : OsxQuartzResource(graphics_factory), cg_path_(cg_path) {} @@ -14,7 +14,7 @@ bool QuartzGeometry::FillContains(const Point &point) { kCGPathFill); } -QuartzGeometryBuilder::QuartzGeometryBuilder(IGraphFactory *graphics_factory) +QuartzGeometryBuilder::QuartzGeometryBuilder(IGraphicsFactory *graphics_factory) : OsxQuartzResource(graphics_factory) { cg_mutable_path_ = CGPathCreateMutable(); } @@ -42,7 +42,7 @@ void QuartzGeometryBuilder::QuadraticBezierTo(const Point &control_point, } std::unique_ptr QuartzGeometryBuilder::Build() { - return std::make_unique(GetGraphFactory(), + return std::make_unique(GetGraphicsFactory(), CGPathCreateCopy(cg_mutable_path_)); } } // namespace cru::platform::graphics::osx::quartz -- cgit v1.2.3