From: Stefan Csomor <csomor@advancedconcepts.ch> Date: Sat, 16 Apr 2011 16:59:44 +0000 (+0000) Subject: adding missing part when using the native paint CGContextRef on osx, see #11853 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/058e3f1b54586781545ed872358ee43053dad8b6 adding missing part when using the native paint CGContextRef on osx, see #11853 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/dcclient.cpp b/src/osx/carbon/dcclient.cpp index 4387f6c2a8..21f3c245bd 100644 --- a/src/osx/carbon/dcclient.cpp +++ b/src/osx/carbon/dcclient.cpp @@ -68,7 +68,9 @@ wxWindowDCImpl::wxWindowDCImpl( wxDC *owner, wxWindow *window ) 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 ) ;