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:
@@ -187,13 +187,7 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
|
|||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
wxGraphicsContext* context;
|
wxGraphicsContext* context;
|
||||||
#if wxUSE_CAIRO
|
|
||||||
wxGraphicsRenderer* renderer = wxGraphicsRenderer::GetCairoRenderer();
|
|
||||||
context = renderer->CreateContext(dc);
|
|
||||||
#else
|
|
||||||
context = wxGraphicsContext::Create(dc);
|
context = wxGraphicsContext::Create(dc);
|
||||||
#endif
|
|
||||||
|
|
||||||
SetGraphicsContext( context );
|
SetGraphicsContext( context );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user