Kaydet (Commit) 00094cd1 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

refactor DialControl to use RenderContext

Change-Id: I9efaf6e4910606dd6b7f70420918d82c193cb244
üst 514e461f
...@@ -34,14 +34,14 @@ namespace svx { ...@@ -34,14 +34,14 @@ namespace svx {
const long DIAL_OUTER_WIDTH = 8; const long DIAL_OUTER_WIDTH = 8;
DialControlBmp::DialControlBmp( vcl::Window& rParent ) : DialControlBmp::DialControlBmp(vcl::Window& rParent) :
VirtualDevice( rParent, 0, 0 ), VirtualDevice(rParent, 0, 0),
mbEnabled( true ), mbEnabled(true),
mrParent( rParent ), mrParent(rParent),
mnCenterX(0), mnCenterX(0),
mnCenterY(0) mnCenterY(0)
{ {
EnableRTL( false ); EnableRTL(false);
} }
void DialControlBmp::InitBitmap(const vcl::Font& rFont) void DialControlBmp::InitBitmap(const vcl::Font& rFont)
...@@ -275,10 +275,10 @@ void DialControl::Resize() ...@@ -275,10 +275,10 @@ void DialControl::Resize()
InvalidateControl(); InvalidateControl();
} }
void DialControl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) void DialControl::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{ {
Point aPos; Point aPos;
DrawBitmapEx( aPos, mpImpl->mxBmpBuffered->GetBitmapEx( aPos, mpImpl->maWinSize ) ); rRenderContext.DrawBitmapEx(aPos, mpImpl->mxBmpBuffered->GetBitmapEx(aPos, mpImpl->maWinSize));
} }
void DialControl::StateChanged( StateChangedType nStateChange ) void DialControl::StateChanged( StateChangedType nStateChange )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment