Browse Source

Fix for #191

- fixed stroke to use lino join style to calculate required vertex
count
shared-context
Mikko Mononen 10 years ago
parent
commit
31f9feb401
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nanovg.c

+ 1
- 1
src/nanovg.c View File

@@ -1619,7 +1619,7 @@ static int nvg__expandStroke(NVGcontext* ctx, float w, int lineCap, int lineJoin
for (i = 0; i < cache->npaths; i++) {
NVGpath* path = &cache->paths[i];
int loop = (path->closed == 0) ? 0 : 1;
if (lineCap == NVG_ROUND)
if (lineJoin == NVG_ROUND)
cverts += (path->count + path->nbevel*(ncap+2) + 1) * 2; // plus one for loop
else
cverts += (path->count + path->nbevel*5 + 1) * 2; // plus one for loop


Loading…
Cancel
Save