Skip to content
Permalink
Browse files

Tweak saturation curve (fix #7655)

  • Loading branch information
nyalldawson committed Apr 29, 2013
1 parent 27c5b93 commit 6e90ba30295564b97a5b94bba5b0f75229cfe79e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgshuesaturationfilter.cpp
@@ -305,7 +305,7 @@ void QgsHueSaturationFilter::processSaturation( int &r, int &g, int &b, int &h,
{
// Raising the saturation. Use a saturation curve to prevent
// clipping at maximum saturation with ugly results.
s = qMin(( int )( 255. * ( 1 - pow( 1 - ( s / 255. ) , mSaturationScale * 2 ) ) ), 255 );
s = qMin(( int )( 255. * ( 1 - pow( 1 - ( s / 255. ) , pow( mSaturationScale, 2 ) ) ) ), 255 );
}

// Saturation changed, so update rgb values

0 comments on commit 6e90ba3

Please sign in to comment.
You can’t perform that action at this time.