From 821aa77b0a6c9b25ac15e73eeaca01331c27af75 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Tue, 18 Feb 2025 02:45:24 +0100 Subject: [PATCH] fix svg fill rules --- src/svgdraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/svgdraw.c b/src/svgdraw.c index 44e0229a..601de7da 100644 --- a/src/svgdraw.c +++ b/src/svgdraw.c @@ -994,8 +994,8 @@ void svg_draw(void) * 2 : solid fill * fill_type[i]: * 0 : no fill - * 1 : solid fill - * 2 : patterned (stippled) fill + * 1 : patterned (stippled) fill + * 2 : solid fill */ for(i=0;ifill_pattern == 2 && xctx->fill_type[i]) fprintf(fd, " fill: #%02x%02x%02x;\n", svg_colors[i].red, svg_colors[i].green, svg_colors[i].blue); - else if( xctx->fill_pattern && xctx->fill_type[i] == 1) + else if( xctx->fill_pattern && xctx->fill_type[i] == 2) fprintf(fd, " fill: #%02x%02x%02x;\n", svg_colors[i].red, svg_colors[i].green, svg_colors[i].blue); else fprintf(fd, " fill: #%02x%02x%02x; fill-opacity: 0.5;\n",