From a2934a183cd06e1a3ad1f6c9b8d44c535d6018bb Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 19 Feb 2016 20:38:38 -0500 Subject: [PATCH] fix --- context.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/context.go b/context.go index 6a0b850..cb524c1 100644 --- a/context.go +++ b/context.go @@ -235,15 +235,11 @@ func (dc *Context) Stroke() { } func (dc *Context) FillPreserve() { - // make sure the path is closed - path := make(raster.Path, len(dc.path)) - copy(path, dc.path) - path.Add1(dc.start) painter := raster.NewRGBAPainter(dc.im) painter.SetColor(dc.color) r := raster.NewRasterizer(dc.width, dc.height) r.UseNonZeroWinding = dc.fillRule == FillRuleWinding - r.AddPath(path) + r.AddPath(dc.path) r.Rasterize(painter) }