remove redundant GTK-specific code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2346,13 +2346,6 @@ wxGraphicsContext * wxCairoRenderer::CreateContext( const wxMemoryDC& dc)
|
|||||||
wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
|
wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
|
||||||
{
|
{
|
||||||
ENSURE_LOADED_OR_RETURN(NULL);
|
ENSURE_LOADED_OR_RETURN(NULL);
|
||||||
#ifdef __WXGTK20__
|
|
||||||
const wxDCImpl *impl = dc.GetImpl();
|
|
||||||
cairo_t* context = (cairo_t*) impl->GetCairoContext();
|
|
||||||
if (context)
|
|
||||||
return new wxCairoContext(this,dc);
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
return new wxCairoContext(this, dc);
|
return new wxCairoContext(this, dc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user