Painter: Fill now closes polygon even if color is null

git-svn-id: svn://ultimatepp.org/upp/trunk@11703 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-01-16 23:44:24 +00:00
parent 86689e0b73
commit cfd57e8018

View file

@ -141,14 +141,15 @@ Buffer<ClippingLine> BufferPainter::RenderPath(double width, Event<One<SpanSourc
{
PAINTER_TIMING("RenderPath");
Buffer<ClippingLine> newclip;
if(width == FILL)
Close();
if(width == 0 || !ss && color.a == 0 && width >= FILL) {
current = Null;
return newclip;
}
if(width == FILL)
Close();
if(co && width >= FILL && !ss && !alt && mode == MODE_ANTIALIASED) {
for(const String& p : path) {
while(jobcount >= cojob.GetCount())