]> git.saurik.com Git - wxWidgets.git/commitdiff
region calculation for windows with borders too small
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 5 Jan 2003 18:25:27 +0000 (18:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 5 Jan 2003 18:25:27 +0000 (18:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dc.cpp
src/mac/carbon/window.cpp
src/mac/dc.cpp
src/mac/window.cpp

index 65f74ce58a8ae81b961056dca95226b0ce5b0051..638a4f0d58eddb758c577b739fb920abd98f44b9 100644 (file)
@@ -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 ) ;
index 70ffe076e7c3596ad914eee9a2214f3a4f174dba..0528ad58db9902ea4016aa58df63421f190a3e15 100644 (file)
@@ -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() )
index 65f74ce58a8ae81b961056dca95226b0ce5b0051..638a4f0d58eddb758c577b739fb920abd98f44b9 100644 (file)
@@ -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 ) ;
index 70ffe076e7c3596ad914eee9a2214f3a4f174dba..0528ad58db9902ea4016aa58df63421f190a3e15 100644 (file)
@@ -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() )