aboutsummaryrefslogtreecommitdiff
path: root/src/nanosvgrast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nanosvgrast.h')
-rw-r--r--src/nanosvgrast.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nanosvgrast.h b/src/nanosvgrast.h
index 89a2e243..35175ee9 100644
--- a/src/nanosvgrast.h
+++ b/src/nanosvgrast.h
@@ -1288,11 +1288,11 @@ static void nsvg__initPaint(NSVGcachedPaint* cache, NSVGpaint* paint, float opac
cache->type = paint->type;
if (paint->type == NSVG_PAINT_COLOR) {
- cache->colors[0] = nsvg__applyOpacity(paint->color, opacity);
+ cache->colors[0] = nsvg__applyOpacity(paint->v.color, opacity);
return;
}
- grad = paint->gradient;
+ grad = paint->v.gradient;
cache->spread = grad->spread;
memcpy(cache->xform, grad->xform, sizeof(float)*6);