]> git.saurik.com Git - wxWidgets.git/commitdiff
extending calculation of visible region
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 28 Mar 2004 07:06:27 +0000 (07:06 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 28 Mar 2004 07:06:27 +0000 (07:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 808db5c2be435e879386963b3641ec1a11d76801..fc0644b0247bfe5755b70d6ae3bbeeeb68149c1b 100644 (file)
@@ -2184,7 +2184,9 @@ wxRegion wxWindowMac::MacGetVisibleRegion( bool includeOuterStructures )
             {
                 int x , y ;
                 wxSize size ;
-                if ( parent->IsTopLevel() && child->IsKindOf( CLASSINFO( wxToolBar ) ) )
+                // we have to find a better clipping algorithm here, in order not to clip things
+                // positioned like status and toolbar
+                if ( 1 /* parent->IsTopLevel() && child->IsKindOf( CLASSINFO( wxToolBar ) ) */ )
                 {
                     size = parent->GetSize() ;
                     x = y = 0 ;