diff options
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/color.cxx | 12 | ||||
-rw-r--r-- | slideshow/source/inc/hslcolor.hxx | 2 |
2 files changed, 3 insertions, 11 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() ) ) ) { } diff --git a/slideshow/source/inc/hslcolor.hxx b/slideshow/source/inc/hslcolor.hxx index c38a8f7023d3..96461c08bace 100644 --- a/slideshow/source/inc/hslcolor.hxx +++ b/slideshow/source/inc/hslcolor.hxx @@ -75,8 +75,6 @@ namespace slideshow HSLTriple maHSLTriple; - /// Pre-calculated value, needed for conversion back to RGB - double mnMagicValue; }; bool operator==( const HSLColor& rLHS, const HSLColor& rRHS ); |