summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/color.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/color.cxx')
-rw-r--r--slideshow/source/engine/color.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
index e979b9421812..374508393753 100644
--- a/slideshow/source/engine/color.cxx
+++ b/slideshow/source/engine/color.cxx
@@ -170,25 +170,19 @@ namespace slideshow
}
HSLColor::HSLColor() :
- maHSLTriple( 0.0, 0.0, 0.0 ),
- mnMagicValue( getMagic( maHSLTriple.mnLuminance,
- maHSLTriple.mnSaturation ) )
+ maHSLTriple( 0.0, 0.0, 0.0 )
{
}
HSLColor::HSLColor( double nHue, double nSaturation, double nLuminance ) :
- maHSLTriple( nHue, nSaturation, nLuminance ),
- mnMagicValue( getMagic( maHSLTriple.mnLuminance,
- maHSLTriple.mnSaturation ) )
+ maHSLTriple( nHue, nSaturation, nLuminance )
{
}
HSLColor::HSLColor( const RGBColor& rColor ) :
maHSLTriple( rgb2hsl( truncateRangeStd( rColor.getRed() ),
truncateRangeStd( rColor.getGreen() ),
- truncateRangeStd( rColor.getBlue() ) ) ),
- mnMagicValue( getMagic( maHSLTriple.mnLuminance,
- maHSLTriple.mnSaturation ) )
+ truncateRangeStd( rColor.getBlue() ) ) )
{
}