From 64a226f7d08230568e06dbdb82d3ee83236dc8fe Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 12 Nov 2007 19:03:37 +0000 Subject: [PATCH] Adapt for new DC code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/graphicc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 2f29da4b3c..df232c1db3 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -1036,8 +1036,13 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, const wxWindowDC& : wxGraphicsContext(renderer) { #ifdef __WXGTK__ +#if wxUSE_NEW_DC + wxGTKImplDC *impldc = (wxGTKImplDC*) dc.GetImpl(); + Init( gdk_cairo_create( impldc->GetGDKWindow() ) ); +#else Init( gdk_cairo_create( dc.m_window ) ); #endif +#endif #ifdef __WXMAC__ int width, height; dc.GetSize( &width, &height ); -- 2.45.2