Forward port of r60190 (wxMSW Cairo support) to trunk.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,7 +172,15 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
|
||||
wxDCImpl( owner )
|
||||
{
|
||||
Init();
|
||||
SetGraphicsContext( wxGraphicsContext::Create(dc) );
|
||||
wxGraphicsContext* context;
|
||||
#if wxUSE_CAIRO
|
||||
wxGraphicsRenderer* renderer = wxGraphicsRenderer::GetCairoRenderer();
|
||||
context = renderer->CreateContext(dc);
|
||||
#else
|
||||
context = wxGraphicsContext::Create(dc);
|
||||
#endif
|
||||
|
||||
SetGraphicsContext( context );
|
||||
}
|
||||
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
|
Reference in New Issue
Block a user