void wxGCDCImpl::Flush()
{
-#ifdef __WXOSX_OR_COCOA__
- CGContextFlush( (CGContextRef) m_graphicContext->GetNativeContext() );
-#endif
+ m_graphicContext->Flush();
}
void wxGCDCImpl::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord w, wxCoord h )
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 ) ;
}
CGContextRestoreGState( m_cgContext );
if ( m_contextSynthesized )
{
- // TODO: in case of performance problems, try issuing this not too
- // frequently (half of refresh rate)
- CGContextFlush(m_cgContext);
#if wxOSX_USE_CARBON
QDEndCGContext( GetWindowPort( m_windowRef ) , &m_cgContext);
#endif