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:
@@ -24,7 +24,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
|
|||||||
wxScreenDC::wxScreenDC()
|
wxScreenDC::wxScreenDC()
|
||||||
{
|
{
|
||||||
#if TARGET_CARBON
|
#if TARGET_CARBON
|
||||||
m_macPort = GetQDGlobalsThePort() ;
|
m_macPort = CreateNewPort() ;
|
||||||
GrafPtr port ;
|
GrafPtr port ;
|
||||||
GetPort( &port ) ;
|
GetPort( &port ) ;
|
||||||
SetPort( (GrafPtr) m_macPort ) ;
|
SetPort( (GrafPtr) m_macPort ) ;
|
||||||
@@ -58,6 +58,6 @@ wxScreenDC::wxScreenDC()
|
|||||||
|
|
||||||
wxScreenDC::~wxScreenDC()
|
wxScreenDC::~wxScreenDC()
|
||||||
{
|
{
|
||||||
// TODO
|
DisposePort( (CGrafPtr) m_macPort ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user