redraw problems fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-05-11 07:15:43 +00:00
parent 65608e3bb0
commit a8cd4a3a03
4 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,7 @@ void wxDC::MacSetupPort(AGAPortHelper* help) const
{
// help->Setup( m_macPort ) ;
::SetOrigin(-m_macLocalOrigin.h, -m_macLocalOrigin.v);
if ( m_clipping )
{
long x1 = XLOG2DEV(m_clipX1);

View File

@ -112,6 +112,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
m_macPort = UMAGetWindowPort( windowref ) ;
m_ok = TRUE ;
/*
wxCoord x , y ,w , h ;
window->GetUpdateRegion().GetBox( x , y , w , h ) ;
m_minY = m_minX = 0;
@ -119,6 +120,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
m_maxX = size.x ;
m_maxY = size.y ;
SetClippingRegion( x , y , w , h ) ;
*/
SetBackground(wxBrush(window->GetBackgroundColour(), wxSOLID));
SetFont(window->GetFont() ) ;
}

View File

@ -105,6 +105,7 @@ void wxDC::MacSetupPort(AGAPortHelper* help) const
{
// help->Setup( m_macPort ) ;
::SetOrigin(-m_macLocalOrigin.h, -m_macLocalOrigin.v);
if ( m_clipping )
{
long x1 = XLOG2DEV(m_clipX1);

View File

@ -112,6 +112,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
m_macPort = UMAGetWindowPort( windowref ) ;
m_ok = TRUE ;
/*
wxCoord x , y ,w , h ;
window->GetUpdateRegion().GetBox( x , y , w , h ) ;
m_minY = m_minX = 0;
@ -119,6 +120,7 @@ wxPaintDC::wxPaintDC(wxWindow *window)
m_maxX = size.x ;
m_maxY = size.y ;
SetClippingRegion( x , y , w , h ) ;
*/
SetBackground(wxBrush(window->GetBackgroundColour(), wxSOLID));
SetFont(window->GetFont() ) ;
}