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

refactor ColorWindow to use RenderContext

Change-Id: Ieec862a1e13ffd18a74aba9569268e84ac078a57
üst b34b648f
......@@ -319,18 +319,13 @@ IMPL_LINK_NOARG(MaskData, ExecHdl)
return 0L;
}
void ColorWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle &/*Rect*/ )
void ColorWindow::Paint( vcl::RenderContext& rRenderContext, const Rectangle& /*Rect*/)
{
const Color& rOldLineColor = GetLineColor();
const Color& rOldFillColor = GetFillColor();
SetLineColor( aColor );
SetFillColor( aColor );
DrawRect( Rectangle( Point(), GetSizePixel() ) );
SetLineColor( rOldLineColor );
SetFillColor( rOldFillColor );
rRenderContext.Push(PushFlags::LINECOLOR | PushFlags::FILLCOLOR);
rRenderContext.SetLineColor(aColor);
rRenderContext.SetFillColor(aColor);
rRenderContext.DrawRect(Rectangle(Point(), GetSizePixel()));
rRenderContext.Pop();
}
SvxBmpMaskSelectItem::SvxBmpMaskSelectItem( sal_uInt16 nId_, SvxBmpMask& rMask,
......
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