Clear background with white brush by default in wxGCDC
This makes wxGCDC consistent with wxDC. This commit is best viewed ignoring whitespace.
This commit is contained in:
@@ -1287,9 +1287,8 @@ void wxGCDCImpl::Clear(void)
|
||||
if ( m_backgroundBrush.IsTransparent() )
|
||||
return;
|
||||
|
||||
if ( m_backgroundBrush.IsOk() )
|
||||
{
|
||||
m_graphicContext->SetBrush( m_backgroundBrush );
|
||||
m_graphicContext->SetBrush( m_backgroundBrush.IsOk() ? m_backgroundBrush
|
||||
: *wxWHITE_BRUSH );
|
||||
wxPen p = *wxTRANSPARENT_PEN;
|
||||
m_graphicContext->SetPen( p );
|
||||
wxCompositionMode formerMode = m_graphicContext->GetCompositionMode();
|
||||
@@ -1303,13 +1302,6 @@ void wxGCDCImpl::Clear(void)
|
||||
m_graphicContext->SetPen( m_pen );
|
||||
m_graphicContext->SetBrush( m_brush );
|
||||
}
|
||||
else
|
||||
{
|
||||
double x, y, w, h;
|
||||
m_graphicContext->GetClipBox(&x, &y, &w, &h);
|
||||
m_graphicContext->ClearRectangle(x, y, w, h);
|
||||
}
|
||||
}
|
||||
|
||||
void wxGCDCImpl::DoGetSize(int *width, int *height) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user