Implemented Clear in wxSVGFileDC.
Draw a rectangle with the background colour and a transparent pen. Closes #15788.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user