Browse Source

Temporary fix for SVG path winding

tags/v0.3.2
Andrew Belt 7 years ago
parent
commit
4e075332fa
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/widgets/SVGWidget.cpp

+ 6
- 4
src/widgets/SVGWidget.cpp View File

@@ -44,10 +44,12 @@ static void drawSVG(NVGcontext *vg, NSVGimage *svg) {
if (path->closed)
nvgClosePath(vg);

// if ()
// nvgPathWinding(vg, NVG_SOLID);
// else
// nvgPathWinding(vg, NVG_HOLE);
// TODO
// This is totally wrong but works by coincidence
if (!path->next)
nvgPathWinding(vg, NVG_SOLID);
else
nvgPathWinding(vg, NVG_HOLE);
}

// Fill shape


Loading…
Cancel
Save