if ( window->MacGetLeftBorderSize() != 0 || window->MacGetTopBorderSize() != 0 )
CGContextTranslateCTM( cg , -window->MacGetLeftBorderSize() , -window->MacGetTopBorderSize() );
- SetGraphicsContext( wxGraphicsContext::CreateFromNative( cg ) );
+ wxGraphicsContext* context = wxGraphicsContext::CreateFromNative( cg );
+ context->EnableOffset(true);
+ SetGraphicsContext( context );
}
DoSetClippingRegion( 0 , 0 , m_width , m_height ) ;
wxClientDCImpl::~wxClientDCImpl()
{
+ if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() )
+ Flush();
}
/*
wxPoint origin = window->GetClientAreaOrigin() ;
m_window->GetClientSize( &m_width , &m_height);
SetDeviceOrigin( origin.x, origin.y );
-#ifdef __WXOSX_IPHONE__
- m_graphicContext->ResetClip();
- m_clipping = false;
-#endif
DoSetClippingRegion( 0 , 0 , m_width , m_height ) ;
}