corrected the invalidation when resizing windows (was only invalidating the client area)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -564,13 +564,12 @@ void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// erase former position
|
// erase former position
|
||||||
|
wxMacDrawingHelper focus( this ) ;
|
||||||
|
if ( focus.Ok() )
|
||||||
{
|
{
|
||||||
wxMacDrawingClientHelper focus( this ) ;
|
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
||||||
if ( focus.Ok() )
|
ClipRect( &clientrect ) ;
|
||||||
{
|
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
||||||
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
|
||||||
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_x = actualX ;
|
m_x = actualX ;
|
||||||
@@ -597,14 +596,17 @@ void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// erase new position
|
// erase new position
|
||||||
|
|
||||||
{
|
{
|
||||||
wxMacDrawingClientHelper focus( this ) ;
|
wxMacDrawingHelper focus( this ) ;
|
||||||
if ( focus.Ok() )
|
if ( focus.Ok() )
|
||||||
{
|
{
|
||||||
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
||||||
|
ClipRect( &clientrect ) ;
|
||||||
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( doMove )
|
if ( doMove )
|
||||||
wxWindow::MacSuperChangedPosition() ; // like this only children will be notified
|
wxWindow::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
}
|
}
|
||||||
|
@@ -564,13 +564,12 @@ void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// erase former position
|
// erase former position
|
||||||
|
wxMacDrawingHelper focus( this ) ;
|
||||||
|
if ( focus.Ok() )
|
||||||
{
|
{
|
||||||
wxMacDrawingClientHelper focus( this ) ;
|
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
||||||
if ( focus.Ok() )
|
ClipRect( &clientrect ) ;
|
||||||
{
|
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
||||||
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
|
||||||
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_x = actualX ;
|
m_x = actualX ;
|
||||||
@@ -597,14 +596,17 @@ void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// erase new position
|
// erase new position
|
||||||
|
|
||||||
{
|
{
|
||||||
wxMacDrawingClientHelper focus( this ) ;
|
wxMacDrawingHelper focus( this ) ;
|
||||||
if ( focus.Ok() )
|
if ( focus.Ok() )
|
||||||
{
|
{
|
||||||
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
Rect clientrect = { 0 , 0 , m_height , m_width } ;
|
||||||
|
ClipRect( &clientrect ) ;
|
||||||
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
InvalWindowRect( GetMacRootWindow() , &clientrect ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( doMove )
|
if ( doMove )
|
||||||
wxWindow::MacSuperChangedPosition() ; // like this only children will be notified
|
wxWindow::MacSuperChangedPosition() ; // like this only children will be notified
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user