diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-03-22 16:10:41 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-03-22 16:10:41 +0000 |
commit | c301b03f1741e3305043e5a303173c1eb321e7f4 (patch) | |
tree | 542b723eae8eea834eb2303a8a977a26a3b0d641 /tools | |
parent | 1787164f5befbf11d8d405fdf27530207a0abf87 (diff) |
#97021# improve dark/bright thresholds
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/color.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx index 49a5a5ee52ee..dc59bc7fe611 100644 --- a/tools/source/generic/color.cxx +++ b/tools/source/generic/color.cxx @@ -2,9 +2,9 @@ * * $RCSfile: color.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ssa $ $Date: 2002-03-05 09:09:47 $ + * last change: $Author: ssa $ $Date: 2002-03-22 17:10:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -158,14 +158,14 @@ void Color::Invert() BOOL Color::IsDark() const { - return GetLuminance() <= 50; + return GetLuminance() <= 30; } // ----------------------------------------------------------------------- BOOL Color::IsBright() const { - return GetLuminance() >= 200; + return GetLuminance() >= 225; } // ----------------------------------------------------------------------- |