]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcscreen.cpp
Enable UpdateUI events in wxTaskBarIcon.
[wxWidgets.git] / src / mac / carbon / dcscreen.cpp
index f700c6466879df06cc8bd76d8225dc80bee0ccf7..6ed78b6353cd55bfc06be87fe3adf416f222b96f 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     1998-01-01
 // RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
-// Licence:       wxWidgets licence
+// Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
@@ -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 ) ;
 }