merge to independent preprocessor to one check.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:44:39 +00:00
parent 999150a45a
commit 7d6abbffb8

View File

@@ -1748,9 +1748,7 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, const wxWindowDC&
cairo_t* cr = static_cast<cairo_t*>(dc.GetImpl()->GetCairoContext());
if ( cr )
Init(cairo_reference(cr));
#endif
#ifdef __WXMAC__
#elif defined(__WXMAC__)
CGContextRef cgcontext = (CGContextRef)dc.GetWindow()->MacGetCGContextRef();
cairo_surface_t* surface = cairo_quartz_surface_create_for_cg_context(cgcontext, width, height);
Init( cairo_create( surface ) );