]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcscreen.cpp
1. extracted MSW-specific part of wxDynamicLibrary in msw/dlmsw.cpp
[wxWidgets.git] / 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 ) ;
 }