]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't always use the Cairo context for wxGCDC(wxMemoryDC). If a Cairo context is...
authorRobin Dunn <robin@alldunn.com>
Thu, 29 Sep 2011 07:28:04 +0000 (07:28 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 29 Sep 2011 07:28:04 +0000 (07:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp

index 812ca0e4edc4628208da3cec2c4caa196c89a453..1f08538f85fa5436a4dec403e0215e95a0d2dc83 100644 (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 );
 }