summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
815f65b)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69802
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
{
ENSURE_LOADED_OR_RETURN(NULL);
wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
{
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);