OS X savvy implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2005-01-07 19:48:48 +00:00
parent cf9d4c6766
commit fa9666fbe6

View 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 ) ;
}