clip region fix backported for fast port setter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,15 +71,21 @@ public :
|
||||
wxASSERT( dc->Ok() ) ;
|
||||
GetPort( &m_oldPort ) ;
|
||||
SetPort( (GrafPtr) dc->m_macPort ) ;
|
||||
m_clipRgn = NewRgn() ;
|
||||
GetClip( m_clipRgn ) ;
|
||||
m_dc = dc ;
|
||||
dc->MacSetupPort( NULL ) ;
|
||||
}
|
||||
~wxMacFastPortSetter()
|
||||
{
|
||||
SetPort( (GrafPtr) m_dc->m_macPort ) ;
|
||||
SetClip( m_clipRgn ) ;
|
||||
SetPort( m_oldPort ) ;
|
||||
m_dc->MacCleanupPort( NULL ) ;
|
||||
DisposeRgn( m_clipRgn ) ;
|
||||
}
|
||||
private :
|
||||
RgnHandle m_clipRgn ;
|
||||
GrafPtr m_oldPort ;
|
||||
const wxDC* m_dc ;
|
||||
} ;
|
||||
|
@@ -71,15 +71,21 @@ public :
|
||||
wxASSERT( dc->Ok() ) ;
|
||||
GetPort( &m_oldPort ) ;
|
||||
SetPort( (GrafPtr) dc->m_macPort ) ;
|
||||
m_clipRgn = NewRgn() ;
|
||||
GetClip( m_clipRgn ) ;
|
||||
m_dc = dc ;
|
||||
dc->MacSetupPort( NULL ) ;
|
||||
}
|
||||
~wxMacFastPortSetter()
|
||||
{
|
||||
SetPort( (GrafPtr) m_dc->m_macPort ) ;
|
||||
SetClip( m_clipRgn ) ;
|
||||
SetPort( m_oldPort ) ;
|
||||
m_dc->MacCleanupPort( NULL ) ;
|
||||
DisposeRgn( m_clipRgn ) ;
|
||||
}
|
||||
private :
|
||||
RgnHandle m_clipRgn ;
|
||||
GrafPtr m_oldPort ;
|
||||
const wxDC* m_dc ;
|
||||
} ;
|
||||
|
Reference in New Issue
Block a user