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:
@@ -930,10 +930,12 @@ void wxWindow::Refresh(bool eraseBack, const wxRect *rect)
|
|||||||
// if ( !IsShown() )
|
// if ( !IsShown() )
|
||||||
// return ;
|
// return ;
|
||||||
|
|
||||||
wxMacDrawingHelper focus( this ) ;
|
wxMacDrawingClientHelper focus( this ) ;
|
||||||
if ( focus.Ok() )
|
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 ) ;
|
// ClipRect( &clientrect ) ;
|
||||||
|
|
||||||
if ( rect )
|
if ( rect )
|
||||||
|
@@ -930,10 +930,12 @@ void wxWindow::Refresh(bool eraseBack, const wxRect *rect)
|
|||||||
// if ( !IsShown() )
|
// if ( !IsShown() )
|
||||||
// return ;
|
// return ;
|
||||||
|
|
||||||
wxMacDrawingHelper focus( this ) ;
|
wxMacDrawingClientHelper focus( this ) ;
|
||||||
if ( focus.Ok() )
|
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 ) ;
|
// ClipRect( &clientrect ) ;
|
||||||
|
|
||||||
if ( rect )
|
if ( rect )
|
||||||
|
Reference in New Issue
Block a user