X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/502113941da16d7949d8dfb8da0d39a0c3761975..6178debcd342963974dbdce6ac2ddb2fbe89e42a:/src/osx/carbon/dcclient.cpp diff --git a/src/osx/carbon/dcclient.cpp b/src/osx/carbon/dcclient.cpp index 0a257909e7..4387f6c2a8 100644 --- a/src/osx/carbon/dcclient.cpp +++ b/src/osx/carbon/dcclient.cpp @@ -161,6 +161,8 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *window ) : wxClientDCImpl::~wxClientDCImpl() { + if( GetGraphicsContext() && GetGraphicsContext()->GetNativeContext() ) + Flush(); } /* @@ -181,10 +183,6 @@ wxPaintDCImpl::wxPaintDCImpl( wxDC *owner, wxWindow *window ) : 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 ) ; }