Added constructor to wxGCDC from wxPrinterDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,6 +65,11 @@ wxGCDC::wxGCDC( const wxMemoryDC& dc) :
|
||||
{
|
||||
}
|
||||
|
||||
wxGCDC::wxGCDC( const wxPrinterDC& dc) :
|
||||
wxDC( new wxGCDCImpl( this, dc ) )
|
||||
{
|
||||
}
|
||||
|
||||
wxGCDC::wxGCDC() :
|
||||
wxDC( new wxGCDCImpl( this ) )
|
||||
{
|
||||
@@ -127,6 +132,13 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
|
||||
SetGraphicsContext( wxGraphicsContext::Create(dc) );
|
||||
}
|
||||
|
||||
wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc ) :
|
||||
wxDCImpl( owner )
|
||||
{
|
||||
Init();
|
||||
SetGraphicsContext( wxGraphicsContext::Create(dc) );
|
||||
}
|
||||
|
||||
void wxGCDCImpl::Init()
|
||||
{
|
||||
m_ok = false;
|
||||
|
Reference in New Issue
Block a user