Skip to content

Commit 6e90ba3

Browse files
committedApr 29, 2013
Tweak saturation curve (fix #7655)
1 parent 27c5b93 commit 6e90ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/raster/qgshuesaturationfilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void QgsHueSaturationFilter::processSaturation( int &r, int &g, int &b, int &h,
305305
{
306306
// Raising the saturation. Use a saturation curve to prevent
307307
// clipping at maximum saturation with ugly results.
308-
s = qMin(( int )( 255. * ( 1 - pow( 1 - ( s / 255. ) , mSaturationScale * 2 ) ) ), 255 );
308+
s = qMin(( int )( 255. * ( 1 - pow( 1 - ( s / 255. ) , pow( mSaturationScale, 2 ) ) ) ), 255 );
309309
}
310310

311311
// Saturation changed, so update rgb values

0 commit comments

Comments
 (0)
Please sign in to comment.