Properly initialize newly created wxGraphicsContext with window background color
This commit is contained in:
@@ -1788,6 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc)
|
||||
return;
|
||||
}
|
||||
|
||||
gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID));
|
||||
gdc.SetGraphicsContext(context);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user