summaryrefslogtreecommitdiff
path: root/src/dicache.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-07-27 12:52:51 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-07-27 12:54:47 +0200
commitc2081d28740e03d43b9dbbe9dbd5ac6484e8953a (patch)
treeeb1c8ac0965fee0139ee58db131a142b2150b4c8 /src/dicache.c
parent59b746f013f60050b91cb5f6f8dd4a96c47f380e (diff)
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.
Diffstat (limited to 'src/dicache.c')
-rw-r--r--src/dicache.c5
1 files changed, 3 insertions, 2 deletions
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 <jcid@dillo.org>
+ * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
*
* 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);
}