diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-13 14:00:10 +0000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-05-14 03:20:50 +0200 |
commit | d14d1341f2b0cd62098425b36438ae20b887fe93 (patch) | |
tree | e1bb6f188239144e7792e678c903334e099e3b9c /vcl | |
parent | 0a3f9a7e113c184355d49dbd6bd2ed75b0980b1e (diff) |
Switch everyone to stricter GetColorError
This replaces the variant in Color with the stricter one of
BitmapColor. I couldn't find any reasoning for the lazy variant
used in Color.
Change-Id: I6dab3ab94a7f24ef5e80299d64267e3be8df888c
Reviewed-on: https://gerrit.libreoffice.org/72234
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/decoview.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 939ed22f237e..9111f74027f6 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -882,15 +882,15 @@ void DecorationView::DrawHighlightFrame( const tools::Rectangle& rRect, else { Color aBackColor = aBackground.GetColor(); - if ( (aLightColor.GetColorError( aBackColor ) < 32) || - (aShadowColor.GetColorError( aBackColor ) < 32) ) + if ( (aLightColor.GetColorError( aBackColor ) < 96) || + (aShadowColor.GetColorError( aBackColor ) < 96) ) { aLightColor = COL_WHITE; aShadowColor = COL_BLACK; - if ( aLightColor.GetColorError( aBackColor ) < 32 ) + if ( aLightColor.GetColorError( aBackColor ) < 96 ) aLightColor.DecreaseLuminance( 64 ); - if ( aShadowColor.GetColorError( aBackColor ) < 32 ) + if ( aShadowColor.GetColorError( aBackColor ) < 96 ) aShadowColor.IncreaseLuminance( 64 ); } } |