X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f984d2afda3c161bc13b8e7927b86b6b3cea6428..115563867dac8edf57b6d2c6ae95910c7f277d77:/src/mac/carbon/overlay.cpp diff --git a/src/mac/carbon/overlay.cpp b/src/mac/carbon/overlay.cpp index 0a1fb54073..933aa8bf01 100644 --- a/src/mac/carbon/overlay.cpp +++ b/src/mac/carbon/overlay.cpp @@ -142,10 +142,10 @@ void wxOverlayImpl::BeginDrawing( wxWindowDC* dc) void wxOverlayImpl::EndDrawing( wxWindowDC* dc) { dc->SetGraphicsContext(NULL); - CGContextSynchronize( m_overlayContext ); + CGContextFlush( m_overlayContext ); } -void wxOverlayImpl::Clear(wxWindowDC* dc) +void wxOverlayImpl::Clear(wxWindowDC* WXUNUSED(dc)) { wxASSERT_MSG( IsOk() , _("You cannot Clear an overlay that is not inited") ); CGRect box = CGRectMake( m_x - 1, m_y - 1 , m_width + 2 , m_height + 2 );