Don't always use the Cairo context for wxGCDC(wxMemoryDC). If a Cairo context is wanted then the wxGCDC(wxGraphicsContext*) ctor should be used instead. (I thought I had removed this code with my last commit of this file...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-29 07:28:04 +00:00
parent 7892e035c9
commit 82614b1a72

View File

@@ -187,13 +187,7 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
{
Init();
wxGraphicsContext* context;
#if wxUSE_CAIRO
wxGraphicsRenderer* renderer = wxGraphicsRenderer::GetCairoRenderer();
context = renderer->CreateContext(dc);
#else
context = wxGraphicsContext::Create(dc);
#endif
SetGraphicsContext( context );
}