avoid creating and immediately destroying a wxGraphicsContext when creating a wxDC with wxGTK3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -205,6 +205,13 @@ wxGCDCImpl::wxGCDCImpl(wxDC *owner, const wxEnhMetaFileDC& dc)
|
||||
}
|
||||
#endif
|
||||
|
||||
wxGCDCImpl::wxGCDCImpl(wxDC* owner, int)
|
||||
: wxDCImpl(owner)
|
||||
{
|
||||
// derived class will set a context
|
||||
Init(NULL);
|
||||
}
|
||||
|
||||
void wxGCDCImpl::Init(wxGraphicsContext* ctx)
|
||||
{
|
||||
m_ok = false;
|
||||
|
Reference in New Issue
Block a user