]> git.saurik.com Git - wxWidgets.git/commitdiff
switching to newer API
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 19:02:44 +0000 (19:02 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 19:02:44 +0000 (19:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dccg.cpp

index 1d6f223a2f629671e4169fccea6887945268d82c..150d697cce56ebada70b962d8f32ab3636549cb6 100755 (executable)
@@ -254,7 +254,7 @@ wxMacCGContext::~wxMacCGContext()
     }
 
     if ( m_qdPort )
-        CGContextRelease( m_cgContext ) ;
+        QDEndCGContext( m_qdPort, &m_cgContext ) ;
 }
 
 
@@ -325,7 +325,7 @@ CGContextRef wxMacCGContext::GetNativeContext()
     {
         Rect bounds ;
         GetPortBounds( (CGrafPtr) m_qdPort , &bounds ) ;
-        OSStatus status = CreateCGContextForPort((CGrafPtr) m_qdPort , &m_cgContext) ;
+        OSStatus status = QDBeginCGContext((CGrafPtr) m_qdPort , &m_cgContext) ;
         CGContextSaveGState( m_cgContext ) ;
 
         wxASSERT_MSG( status == noErr , wxT("Cannot nest wxDCs on the same window") ) ;