region calculation for windows with borders too small
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7379599933
commit
f1872c18e6
@ -70,8 +70,8 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win )
|
||||
parent->MacWindowToRootWindow( &x,&y ) ;
|
||||
wxSize size = parent->GetSize() ;
|
||||
SetRectRgn( insidergn , parent->MacGetLeftBorderSize() , parent->MacGetTopBorderSize() ,
|
||||
size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(),
|
||||
size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ;
|
||||
size.x - parent->MacGetRightBorderSize(),
|
||||
size.y - parent->MacGetBottomBorderSize()) ;
|
||||
CopyRgn( (RgnHandle) parent->MacGetVisibleRegion(false).GetWXHRGN() , m_newClip ) ;
|
||||
SectRgn( m_newClip , insidergn , m_newClip ) ;
|
||||
OffsetRgn( m_newClip , x , y ) ;
|
||||
|
@ -1666,8 +1666,8 @@ const wxRegion& wxWindowMac::MacGetVisibleRegion( bool respectChildrenAndSibling
|
||||
|
||||
SetRectRgn( tempRgn ,
|
||||
x + parent->MacGetLeftBorderSize() , y + parent->MacGetTopBorderSize() ,
|
||||
x + size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(),
|
||||
y + size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ;
|
||||
x + size.x - parent->MacGetRightBorderSize(),
|
||||
y + size.y - parent->MacGetBottomBorderSize()) ;
|
||||
|
||||
SectRgn( visRgn , tempRgn , visRgn ) ;
|
||||
if ( parent->IsTopLevel() )
|
||||
|
@ -70,8 +70,8 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win )
|
||||
parent->MacWindowToRootWindow( &x,&y ) ;
|
||||
wxSize size = parent->GetSize() ;
|
||||
SetRectRgn( insidergn , parent->MacGetLeftBorderSize() , parent->MacGetTopBorderSize() ,
|
||||
size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(),
|
||||
size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ;
|
||||
size.x - parent->MacGetRightBorderSize(),
|
||||
size.y - parent->MacGetBottomBorderSize()) ;
|
||||
CopyRgn( (RgnHandle) parent->MacGetVisibleRegion(false).GetWXHRGN() , m_newClip ) ;
|
||||
SectRgn( m_newClip , insidergn , m_newClip ) ;
|
||||
OffsetRgn( m_newClip , x , y ) ;
|
||||
|
@ -1666,8 +1666,8 @@ const wxRegion& wxWindowMac::MacGetVisibleRegion( bool respectChildrenAndSibling
|
||||
|
||||
SetRectRgn( tempRgn ,
|
||||
x + parent->MacGetLeftBorderSize() , y + parent->MacGetTopBorderSize() ,
|
||||
x + size.x - parent->MacGetLeftBorderSize() - parent->MacGetRightBorderSize(),
|
||||
y + size.y - parent->MacGetTopBorderSize() - parent->MacGetBottomBorderSize()) ;
|
||||
x + size.x - parent->MacGetRightBorderSize(),
|
||||
y + size.y - parent->MacGetBottomBorderSize()) ;
|
||||
|
||||
SectRgn( visRgn , tempRgn , visRgn ) ;
|
||||
if ( parent->IsTopLevel() )
|
||||
|
Loading…
Reference in New Issue
Block a user