diff options
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/nr-filter-convolve-matrix.cpp | 3 |
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]; + } } } |
