summaryrefslogtreecommitdiffstats
path: root/src/filter-chemistry.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2012-12-22 16:43:07 +0000
committertavmjong-free <tavmjong@free.fr>2012-12-22 16:43:07 +0000
commit8c4d3b68e4a5727b2205ec136d6fb5f50289d1e9 (patch)
treee42d82fbd37bf5876a67f7ac199a2f2fb607f291 /src/filter-chemistry.cpp
parentAdd utilities to tag a cairo surface with color interpolation value. (diff)
downloadinkscape-8c4d3b68e4a5727b2205ec136d6fb5f50289d1e9.tar.gz
inkscape-8c4d3b68e4a5727b2205ec136d6fb5f50289d1e9.zip
Add support for color-interpolation-filters = linearRGB.
(bzr r11972)
Diffstat (limited to 'src/filter-chemistry.cpp')
-rw-r--r--src/filter-chemistry.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filter-chemistry.cpp b/src/filter-chemistry.cpp
index fc74ee8a2..14bd00057 100644
--- a/src/filter-chemistry.cpp
+++ b/src/filter-chemistry.cpp
@@ -98,7 +98,10 @@ SPFilter *new_filter(SPDocument *document)
Inkscape::XML::Node *repr;
repr = xml_doc->createElement("svg:filter");
- // Inkscape only supports sRGB. See note in sp-filter.cpp.
+ // Inkscape now supports both sRGB and linear color-interpolation-filters.
+ // But, for the moment, keep sRGB as default value for new filters
+ // (historically set to sRGB and doesn't require conversion between
+ // filter cairo surfaces and other types of cairo surfaces).
SPCSSAttr *css = sp_repr_css_attr_new();
sp_repr_css_set_property(css, "color-interpolation-filters", "sRGB");
sp_repr_css_change(repr, css, "style");