diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-05-12 18:12:20 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-07-26 00:39:22 +0200 |
commit | 903548005c2141b9c67f80412a20522c163c5fb9 (patch) | |
tree | 1aa9cd962de8ad48fe5c369120608b829d2f9e60 /dpi | |
parent | 8f67d6e0cea4629ae2e1ca6962224aae0be15092 (diff) |
Merge SVG support from mobilized Dillo fork
Uses the nanosvg library to add SVG support.
See: https://www.toomanyatoms.com/software/mobilized_dillo.html
Authored-By: dogma
Diffstat (limited to 'dpi')
-rw-r--r-- | dpi/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -510,6 +510,8 @@ static const char *File_ext(const char *filename) return "image/jpeg"; } else if (!dStrAsciiCasecmp(e, "png")) { return "image/png"; + } else if (!dStrAsciiCasecmp(e, "svg")) { + return "image/svg+xml"; } else if (!dStrAsciiCasecmp(e, "html") || !dStrAsciiCasecmp(e, "xhtml") || !dStrAsciiCasecmp(e, "htm") || |