From 6fa87f3fde8316fe1e4c35d1dd5132dbd7d7d903 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 18 May 2015 11:17:49 +0900 Subject: use RenderTools variant of DrawSelectionBackground Change-Id: Ia7a0f0a4d62e478876743c019865e7878bcbf596 --- vcl/source/window/dockmgr.cxx | 2 +- vcl/source/window/splitwin.cxx | 2 +- vcl/source/window/toolbox.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vcl') diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index 1931592d100b..96b776c051ab 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -639,7 +639,7 @@ void ImplPopupFloatWin::DrawGrip(vcl::RenderContext& rRenderContext) if (mbHighlight) { rRenderContext.Erase(aRect); - DrawSelectionBackground(aRect, 2, false, true, false); + vcl::RenderTools::DrawSelectionBackground(rRenderContext, *this, aRect, 2, false, true, false); } else { diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 7e1a47288601..df362cd1cbd0 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1914,7 +1914,7 @@ void SplitWindow::ImplDrawGrip(vcl::RenderContext& rRenderContext, const Rectang if (rRect.IsInside(GetPointerPosPixel())) { rRenderContext.DrawWallpaper(rRect, Wallpaper(Color(COL_WHITE))); - DrawSelectionBackground(rRect, 2, false, false, false); + vcl::RenderTools::DrawSelectionBackground(rRenderContext, *this, rRect, 2, false, false, false); } if (bHorz) diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 00370ff74cdd..ca362fd9a39d 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2975,7 +2975,7 @@ void ToolBox::ImplDrawButton(vcl::RenderContext& rRenderContext, const Rectangle } if (!bNativeOk) - DrawSelectionBackground(rRect, bIsWindow ? 3 : highlight, bChecked, true, bIsWindow, 2, NULL, NULL); + vcl::RenderTools::DrawSelectionBackground(rRenderContext, *this, rRect, bIsWindow ? 3 : highlight, bChecked, true, bIsWindow, NULL, 2, NULL); } void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight, bool bPaint, bool bLayout) -- cgit