From c2081d28740e03d43b9dbbe9dbd5ac6484e8953a Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 27 Jul 2024 12:52:51 +0200 Subject: Add SVG support for currentColor The currentColor special value for the fill and stroke attributes allows an image to follow the same foreground color of the surounding text. --- src/dicache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dicache.c') diff --git a/src/dicache.c b/src/dicache.c index 1419ff7a..c9f4067b 100644 --- a/src/dicache.c +++ b/src/dicache.c @@ -2,6 +2,7 @@ * File: dicache.c * * Copyright 2000-2007 Jorge Arellano Cid + * Copyright 2024 Rodrigo Arias Mallo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -353,7 +354,7 @@ void a_Dicache_close(DilloUrl *url, int version, CacheClient_t *Client) /* ------------------------------------------------------------------------- */ /** - * Generic MIME handler for GIF, JPEG and PNG. + * Generic MIME handler for GIF, JPEG, PNG and SVG. * Sets a_Dicache_callback as the cache-client, * and also sets the image decoder. * @@ -372,7 +373,7 @@ static void *Dicache_image(int ImgType, const char *MimeType, void *Ptr, if (!web->Image) { web->Image = - a_Image_new_with_dw(web->bw->render_layout, NULL, web->bgColor); + a_Image_new_with_dw(web->bw->render_layout, NULL, web->bgColor, 0); a_Image_ref(web->Image); } -- cgit v1.2.3