summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-12 16:14:51 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-13 08:38:00 +0900
commit00094cd15165a7dbd0ca887c2e95b7afddc4ff52 (patch)
treeea432afa446922a8b83b85bc2c641203e59c6513 /svx
parent514e461fedaddcbc603cbbb0afb93f563d3b1ea0 (diff)
refactor DialControl to use RenderContext
Change-Id: I9efaf6e4910606dd6b7f70420918d82c193cb244
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dialcontrol.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx
index f07d9f1c1f7f..3dac04e87da2 100644
--- a/svx/source/dialog/dialcontrol.cxx
+++ b/svx/source/dialog/dialcontrol.cxx
@@ -34,14 +34,14 @@ namespace svx {
const long DIAL_OUTER_WIDTH = 8;
-DialControlBmp::DialControlBmp( vcl::Window& rParent ) :
- VirtualDevice( rParent, 0, 0 ),
- mbEnabled( true ),
- mrParent( rParent ),
+DialControlBmp::DialControlBmp(vcl::Window& rParent) :
+ VirtualDevice(rParent, 0, 0),
+ mbEnabled(true),
+ mrParent(rParent),
mnCenterX(0),
mnCenterY(0)
{
- EnableRTL( false );
+ EnableRTL(false);
}
void DialControlBmp::InitBitmap(const vcl::Font& rFont)
@@ -275,10 +275,10 @@ void DialControl::Resize()
InvalidateControl();
}
-void DialControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void DialControl::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
Point aPos;
- DrawBitmapEx( aPos, mpImpl->mxBmpBuffered->GetBitmapEx( aPos, mpImpl->maWinSize ) );
+ rRenderContext.DrawBitmapEx(aPos, mpImpl->mxBmpBuffered->GetBitmapEx(aPos, mpImpl->maWinSize));
}
void DialControl::StateChanged( StateChangedType nStateChange )