]> git.saurik.com Git - wxWidgets.git/commitdiff
OS X savvy implementation
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 7 Jan 2005 19:48:48 +0000 (19:48 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 7 Jan 2005 19:48:48 +0000 (19:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dcscreen.cpp

index 03d769a05b41ddf5987b5ac71122aac8a4e4da83..6ed78b6353cd55bfc06be87fe3adf416f222b96f 100644 (file)
@@ -24,7 +24,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 wxScreenDC::wxScreenDC()
 {
 #if TARGET_CARBON
-    m_macPort = GetQDGlobalsThePort() ;
+    m_macPort = CreateNewPort() ;
     GrafPtr port ;
     GetPort( &port ) ;
     SetPort( (GrafPtr) m_macPort ) ;
@@ -57,7 +57,7 @@ wxScreenDC::wxScreenDC()
 }
 
 wxScreenDC::~wxScreenDC()
-{
-    // TODO
+{   
+    DisposePort( (CGrafPtr) m_macPort ) ;
 }