Adapt for new DC code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1036,8 +1036,13 @@ wxCairoContext::wxCairoContext( wxGraphicsRenderer* renderer, const wxWindowDC&
|
|||||||
: wxGraphicsContext(renderer)
|
: wxGraphicsContext(renderer)
|
||||||
{
|
{
|
||||||
#ifdef __WXGTK__
|
#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 ) );
|
Init( gdk_cairo_create( dc.m_window ) );
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
int width, height;
|
int width, height;
|
||||||
dc.GetSize( &width, &height );
|
dc.GetSize( &width, &height );
|
||||||
|
Reference in New Issue
Block a user