summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2007-09-30 20:56:15 +0000
committertavmjong <tavmjong@users.sourceforge.net>2007-09-30 20:56:15 +0000
commit638728491d5d5abd16deb20a252676bb235a97bd (patch)
treec19a1b5d622e83bfc7f7f5510c4e765745f5e4c6 /src/display
parenttypo in Product uninst key (diff)
downloadinkscape-638728491d5d5abd16deb20a252676bb235a97bd.tar.gz
inkscape-638728491d5d5abd16deb20a252676bb235a97bd.zip
Convolve Matrix Filter:
Enable and use preserveAlpha attribute. Increase range for divisor attribute. (bzr r3818)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/nr-filter-convolve-matrix.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display/nr-filter-convolve-matrix.cpp b/src/display/nr-filter-convolve-matrix.cpp
index 562f3ffc4..6adf9c9a5 100644
--- a/src/display/nr-filter-convolve-matrix.cpp
+++ b/src/display/nr-filter-convolve-matrix.cpp
@@ -69,6 +69,9 @@ int FilterConvolveMatrix::render(FilterSlot &slot, Matrix const &trans) {
out_data[4*( x + width*y )+1] = CLAMP_D_TO_U8(result_G / divisor + bias);
out_data[4*( x + width*y )+2] = CLAMP_D_TO_U8(result_B / divisor + bias);
out_data[4*( x + width*y )+3] = CLAMP_D_TO_U8(result_A / divisor + bias);
+ if( preserveAlpha ) {
+ out_data[4*( x + width*y )+3] = in_data[4*( x + width*y )+3];
+ }
}
}