aboutsummaryrefslogtreecommitdiff
path: root/src/nanosvgrast.h
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-06-28 00:23:27 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-07-26 00:39:27 +0200
commit175b6805ba617611e9fd23a7560b3a7903603691 (patch)
tree02fb8d1c11404fa4466b95c46790f12ab41851ab /src/nanosvgrast.h
parent903548005c2141b9c67f80412a20522c163c5fb9 (diff)
Add support for MathJax equations in nanosvg
Allows Dillo to render Wikipedia math equations.
Diffstat (limited to 'src/nanosvgrast.h')
-rw-r--r--src/nanosvgrast.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nanosvgrast.h b/src/nanosvgrast.h
index a4b866be..89a2e243 100644
--- a/src/nanosvgrast.h
+++ b/src/nanosvgrast.h
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2013-14 Mikko Mononen memon@inside.org
+ * Copyright (c) 2013-14 Mikko Mononen <memon@inside.org>
+ * Copyright (c) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
@@ -1406,7 +1407,7 @@ void nsvgRasterizeXY(NSVGrasterizer* r,
memset(&dst[i*stride], 0, w*4);
for (shape = image->shapes; shape != NULL; shape = shape->next) {
- if (!(shape->flags & NSVG_FLAGS_VISIBLE))
+ if (!(shape->flags & NSVG_FLAGS_VISIBLE) || shape->virtual)
continue;
if (shape->fill.type != NSVG_PAINT_NONE) {