diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 10:32:42 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 10:32:42 +0900 |
commit | 7eb051447748e1a11648dfa63e9e038370bd095b (patch) | |
tree | 2c15a895f19d0f656142e529e0e53b78087c6545 | |
parent | 571e597bc3c91f29c75d804028268255c282764d (diff) |
refactor PopupControl to use RenderContext
Change-Id: I3587cbe8a4025869422106b68c946981da1c6cb9
-rw-r--r-- | svx/source/sidebar/tools/PopupControl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/sidebar/tools/PopupControl.cxx b/svx/source/sidebar/tools/PopupControl.cxx index 4fc48baee127..68b8bfa4ad5f 100644 --- a/svx/source/sidebar/tools/PopupControl.cxx +++ b/svx/source/sidebar/tools/PopupControl.cxx @@ -35,15 +35,15 @@ PopupControl::PopupControl ( SetBackground(Theme::GetWallpaper(Theme::Paint_DropDownBackground)); } -void PopupControl::Paint (vcl::RenderContext& rRenderContext, const Rectangle& rBox) +void PopupControl::Paint (vcl::RenderContext& rRenderContext, const Rectangle& rRect) { - Control::Paint(rRenderContext, rBox); + Control::Paint(rRenderContext, rRect); // The background is taken care of by setting the background color // in the constructor. Here we just paint the border. - SetFillColor(); - SetLineColor(Theme::GetColor(Theme::Color_DropDownBorder)); - DrawRect(Rectangle(Point(0,0), GetOutputSizePixel())); + rRenderContext.SetFillColor(); + rRenderContext.SetLineColor(Theme::GetColor(Theme::Color_DropDownBorder)); + rRenderContext.DrawRect(Rectangle(Point(0,0), GetOutputSizePixel())); } } } // end of namespace svx::sidebar |