Implemented Clear in wxSVGFileDC.

Draw a rectangle with the background colour and a transparent pen.
Closes #15788.
This commit is contained in:
Maarten Bent
2016-03-15 22:12:13 +01:00
parent b424445078
commit 3cc4d51c9b
3 changed files with 13 additions and 5 deletions

View File

@@ -305,6 +305,17 @@ wxSize wxSVGFileDCImpl::GetPPI() const
return wxSize( wxRound(m_dpi), wxRound(m_dpi) );
}
void wxSVGFileDCImpl::Clear()
{
{
wxDCBrushChanger setBackground(*GetOwner(), m_backgroundBrush);
wxDCPenChanger setTransp(*GetOwner(), *wxTRANSPARENT_PEN);
DoDrawRectangle(0, 0, m_width, m_height);
}
NewGraphicsIfNeeded();
}
void wxSVGFileDCImpl::DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
{
NewGraphicsIfNeeded();