diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-11 10:58:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-13 08:54:18 +0200 |
commit | d61f0a8c8634827ad427ebb4609d389164c0cc79 (patch) | |
tree | e5a5d593fcad90e243d38a19e137c803e6cf804d /vcl/source/window/decoview.cxx | |
parent | 61eb53d39a8d90167dc5599c2a2092626788a630 (diff) |
convert FRAME_HIGHLIGHT constants to scoped enum
Change-Id: I44bd2c54c8b1d6cafd7c15eaf0d77a336ac3fa65
Diffstat (limited to 'vcl/source/window/decoview.cxx')
-rw-r--r-- | vcl/source/window/decoview.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 76d5d58552af..e4e271735e7f 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -889,7 +889,7 @@ void DecorationView::DrawFrame( const Rectangle& rRect, } void DecorationView::DrawHighlightFrame( const Rectangle& rRect, - sal_uInt16 nStyle ) + DrawHighlightFrameStyle nStyle, bool bTestBackground ) { const StyleSettings& rStyleSettings = mpOutDev->GetSettings().GetStyleSettings(); Color aLightColor = rStyleSettings.GetLightColor(); @@ -901,7 +901,7 @@ void DecorationView::DrawHighlightFrame( const Rectangle& rRect, aLightColor = Color( COL_BLACK ); aShadowColor = Color( COL_BLACK ); } - else if ( nStyle & FRAME_HIGHLIGHT_TESTBACKGROUND ) + else if ( bTestBackground ) { Wallpaper aBackground = mpOutDev->GetBackground(); if ( aBackground.IsBitmap() || aBackground.IsGradient() ) @@ -926,7 +926,7 @@ void DecorationView::DrawHighlightFrame( const Rectangle& rRect, } } - if ( (nStyle & FRAME_HIGHLIGHT_STYLE) == FRAME_HIGHLIGHT_IN ) + if ( nStyle == DrawHighlightFrameStyle::In ) { Color aTempColor = aLightColor; aLightColor = aShadowColor; |