summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/inc/tools/color.hxx4
-rw-r--r--tools/source/generic/color.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx
index 823f341e5e67..911088b9cad1 100644
--- a/tools/inc/tools/color.hxx
+++ b/tools/inc/tools/color.hxx
@@ -198,9 +198,9 @@ inline sal_Bool Color::IsRGBEqual( const Color& rColor ) const
inline sal_uInt8 Color::GetLuminance() const
{
- return( (sal_uInt8) ( ( COLORDATA_BLUE( mnColor ) * 28UL +
+ return( (sal_uInt8) ( ( COLORDATA_BLUE( mnColor ) * 29UL +
COLORDATA_GREEN( mnColor ) * 151UL +
- COLORDATA_RED( mnColor ) * 77UL ) >> 8UL ) );
+ COLORDATA_RED( mnColor ) * 76UL ) >> 8UL ) );
}
inline void Color::Merge( const Color& rMergeColor, sal_uInt8 cTransparency )
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 33e6aff5b8cc..a6a8084147c5 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -102,7 +102,7 @@ void Color::Invert()
sal_Bool Color::IsDark() const
{
- return GetLuminance() <= 38;
+ return GetLuminance() <= 60;
}
sal_Bool Color::IsBright() const