From: Stefan Csomor Date: Sat, 28 Oct 2006 16:53:07 +0000 (+0000) Subject: missing methods X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/daa6105f2f2c0a7379b409487aa7ad2d6205ff1b missing methods git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/graphics.cpp b/src/mac/carbon/graphics.cpp index a5599faab9..a5222724f3 100755 --- a/src/mac/carbon/graphics.cpp +++ b/src/mac/carbon/graphics.cpp @@ -1752,16 +1752,24 @@ void * wxMacCoreGraphicsContext::GetNativeContext() // concatenates this transform with the current transform of this context void wxMacCoreGraphicsContext::ConcatTransform( const wxGraphicsMatrix& matrix ) { + CGContextConcatCTM( m_cgContext, *(CGAffineTransform*) matrix.GetNativeMatrix()); } // sets the transform of this context void wxMacCoreGraphicsContext::SetTransform( const wxGraphicsMatrix& matrix ) { + CGAffineTransform transform = CGContextGetCTM( m_cgContext ); + transform = CGAffineTransformInvert( transform ) ; + CGContextConcatCTM( m_cgContext, transform); + CGContextConcatCTM( m_cgContext, *(CGAffineTransform*) matrix.GetNativeMatrix()); } // gets the matrix of this context wxGraphicsMatrix wxMacCoreGraphicsContext::GetTransform() const { + wxGraphicsMatrix m = CreateMatrix(); + *((CGAffineTransform*) m.GetNativeMatrix()) = CGContextGetCTM( m_cgContext ); + return m; } //