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:
Kevin Ollivier
2009-11-18 19:05:42 +00:00
parent 6eff83b827
commit c0e69d720d
4 changed files with 72 additions and 4 deletions

View File

@@ -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