diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-07 10:00:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-07 10:33:51 +0200 |
commit | 0825b020caa0d802a0d76d9a7643daedbf9874e6 (patch) | |
tree | 97d94a7d133ae89f4d58542fa07eb26a65da35be /vcl | |
parent | f72e77f4086e4c22072d5815c9a6cbebc323ba8e (diff) |
new clang plugin: rendercontext
to help with converting calls to OutputDevice to pass via
vcl::RenderContext.
Change-Id: I4b49d2f5e4afca46898d2a7c7ed33cbf5577e664
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/brdwin.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index bc6b8efaa6e2..1bf2ac8e3677 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -99,7 +99,7 @@ void Window::ImplCalcSymbolRect( Rectangle& rRect ) } /* namespace vcl */ -static void ImplDrawBrdWinSymbol( OutputDevice* pDev, +static void ImplDrawBrdWinSymbol( vcl::RenderContext* pDev, const Rectangle& rRect, SymbolType eSymbol ) { // we leave 5% room between the symbol and the button border @@ -110,7 +110,7 @@ static void ImplDrawBrdWinSymbol( OutputDevice* pDev, pDev->GetSettings().GetStyleSettings().GetButtonTextColor(), 0 ); } -static void ImplDrawBrdWinSymbolButton( OutputDevice* pDev, +static void ImplDrawBrdWinSymbolButton( vcl::RenderContext* pDev, const Rectangle& rRect, SymbolType eSymbol, sal_uInt16 nState ) { @@ -124,9 +124,9 @@ static void ImplDrawBrdWinSymbolButton( OutputDevice* pDev, if( bMouseOver ) { // provide a bright background for selection effect - pWin->SetFillColor( pDev->GetSettings().GetStyleSettings().GetWindowColor() ); - pWin->SetLineColor(); - pWin->DrawRect( rRect ); + pDev->SetFillColor( pDev->GetSettings().GetStyleSettings().GetWindowColor() ); + pDev->SetLineColor(); + pDev->DrawRect( rRect ); pWin->DrawSelectionBackground( rRect, 2, (nState & BUTTON_DRAW_PRESSED) != 0, true, false ); } |