]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
src/svgtiny_internal.h: add fill/stroke_opacity to the parse state struct
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 17 Oct 2023 23:47:00 +0000 (19:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Jun 2025 01:13:06 +0000 (21:13 -0400)
src/svgtiny_internal.h

index b1a2d482cda61dc2f551f94ac8f5b5c192a91339..dcb686bed11b8f1a54f39881e0a110d7c2932604 100644 (file)
@@ -66,6 +66,10 @@ struct svgtiny_parse_state {
        svgtiny_colour stroke;
        int stroke_width;
 
+       /* alpha */
+       float fill_opacity;
+       float stroke_opacity;
+
        /* gradients */
        struct svgtiny_parse_state_gradient fill_grad;
        struct svgtiny_parse_state_gradient stroke_grad;