From 31f9feb401f6dba7a1e115258a759b814c8c5c1b Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Wed, 31 Dec 2014 20:02:56 +0200 Subject: [PATCH] Fix for #191 - fixed stroke to use lino join style to calculate required vertex count --- src/nanovg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg.c b/src/nanovg.c index 4c4d64a..6361040 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -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