From 6a96f91abf914885f20e00be6b5cc3c4aeccb0d2 Mon Sep 17 00:00:00 2001 From: Jorge Acereda Date: Tue, 3 Jun 2014 23:44:04 +0200 Subject: [PATCH] Relax stroke width limit --- src/nanovg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nanovg.c b/src/nanovg.c index 13276c8..6254a54 100644 --- a/src/nanovg.c +++ b/src/nanovg.c @@ -1916,13 +1916,13 @@ void nvgStroke(struct NVGcontext* ctx) { struct NVGstate* state = nvg__getState(ctx); float scale = nvg__getAverageScale(state->xform); - float strokeWidth = nvg__clampf(state->strokeWidth * scale, 0.0f, 20.0f); + float strokeWidth = nvg__clampf(state->strokeWidth * scale, 0.0f, 200.0f); struct NVGpaint strokePaint = state->stroke; const struct NVGpath* path; int i; if (strokeWidth < ctx->fringeWidth) { - // If the stroke width is less than pixel size, use alpha to emulate coverate. + // If the stroke width is less than pixel size, use alpha to emulate coverage. // Since coverage is area, scale by alpha*alpha. float alpha = nvg__clampf(strokeWidth / ctx->fringeWidth, 0.0f, 1.0f); strokePaint.innerColor.a *= alpha*alpha;