From fa9666fbe69e76f57042b46ba2c8ad5b18a527b6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 7 Jan 2005 19:48:48 +0000 Subject: [PATCH] OS X savvy implementation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dcscreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/dcscreen.cpp b/src/mac/carbon/dcscreen.cpp index 03d769a05b..6ed78b6353 100644 --- a/src/mac/carbon/dcscreen.cpp +++ b/src/mac/carbon/dcscreen.cpp @@ -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 ) ; } -- 2.47.2