diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-18 11:17:49 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-18 11:22:49 +0900 |
commit | 6fa87f3fde8316fe1e4c35d1dd5132dbd7d7d903 (patch) | |
tree | 9f82a59f23b9e0430c2e22062eeb37f5458dd243 /svtools | |
parent | e27ee95cced755e52b62d6cb095bc911ca3fbbe6 (diff) |
use RenderTools variant of DrawSelectionBackground
Change-Id: Ia7a0f0a4d62e478876743c019865e7878bcbf596
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/headbar.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index f34884213e71..0c75a877060d 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -312,7 +312,7 @@ void HeaderBar::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos if (rRenderContext.IsNativeControlSupported(CTRL_WINDOW_BACKGROUND, PART_ENTIRE_CONTROL)) { - aCtrlRegion=aRect; + aCtrlRegion = aRect; rRenderContext.DrawNativeControl(CTRL_WINDOW_BACKGROUND, PART_ENTIRE_CONTROL, aCtrlRegion, nState, aControlValue, OUString()); @@ -358,9 +358,9 @@ void HeaderBar::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos // draw ButtonStyle // avoid 3D borders if (bHigh) - DrawSelectionBackground(aRect, 1, true, false, false, &aSelectionTextColor); + vcl::RenderTools::DrawSelectionBackground(rRenderContext, *this, aRect, 1, true, false, false, &aSelectionTextColor); else if (!mbButtonStyle || (nBits & HeaderBarItemBits::FLAT)) - DrawSelectionBackground(aRect, 0, true, false, false, &aSelectionTextColor); + vcl::RenderTools::DrawSelectionBackground(rRenderContext, *this, aRect, 0, true, false, false, &aSelectionTextColor); } // do not draw if there is no space |