changed Refresh to take Rect as client coordinates not window coordinates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-07-02 20:52:06 +00:00
parent 8facbb759c
commit 748fbf95a8
2 changed files with 8 additions and 4 deletions

View File

@@ -930,10 +930,12 @@ void wxWindow::Refresh(bool eraseBack, const wxRect *rect)
// if ( !IsShown() )
// return ;
wxMacDrawingHelper focus( this ) ;
wxMacDrawingClientHelper focus( this ) ;
if ( focus.Ok() )
{
Rect clientrect = { 0 , 0 , m_height , m_width } ;
wxPoint client ;
client = GetClientAreaOrigin( ) ;
Rect clientrect = { -client.y , -client.x , m_height - client.y , m_width - client.x} ;
// ClipRect( &clientrect ) ;
if ( rect )