Skip to content

Commit

Permalink
Tweak saturation curve (fix #7655)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 29, 2013
1 parent 27c5b93 commit 6e90ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgshuesaturationfilter.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 6e90ba3

Please sign in to comment.