From a8cd4a3a037df6caf2c8e007c77893b58cbd6018 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 11 May 2001 07:15:43 +0000 Subject: [PATCH] redraw problems fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dc.cpp | 1 + src/mac/carbon/dcclient.cpp | 2 ++ src/mac/dc.cpp | 1 + src/mac/dcclient.cpp | 2 ++ 4 files changed, 6 insertions(+) diff --git a/src/mac/carbon/dc.cpp b/src/mac/carbon/dc.cpp index 6756d9df03..81a990bfd6 100644 --- a/src/mac/carbon/dc.cpp +++ b/src/mac/carbon/dc.cpp @@ -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); diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 19d325a772..8d97ce4889 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -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() ) ; } diff --git a/src/mac/dc.cpp b/src/mac/dc.cpp index 6756d9df03..81a990bfd6 100644 --- a/src/mac/dc.cpp +++ b/src/mac/dc.cpp @@ -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); diff --git a/src/mac/dcclient.cpp b/src/mac/dcclient.cpp index 19d325a772..8d97ce4889 100644 --- a/src/mac/dcclient.cpp +++ b/src/mac/dcclient.cpp @@ -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() ) ; }