]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/uma.cpp
cleanup
[wxWidgets.git] / src / mac / carbon / uma.cpp
index 91b3ed5f7b68c15b5e3de654d2ebaeffda6bd8a3..e975a2adf730a20e515f3f3100cefb698c562743 100644 (file)
 
 #if wxUSE_GUI
 
-#ifndef WX_PRECOMP
-    #if TARGET_API_MAC_OSX
-        #include "wx/toplevel.h"
-    #endif
-#endif
-
+#include "wx/toplevel.h"
 #include "wx/dc.h"
 
 #ifndef __DARWIN__
@@ -859,7 +854,7 @@ Rect * UMAGetControlBoundsInWindowCoords( ControlRef theControl, Rect *bounds )
     WindowRef tlwref = GetControlOwner( theControl ) ;
 
     wxTopLevelWindowMac* tlwwx = wxFindWinFromMacWindow( tlwref ) ;
-    if ( tlwwx != NULL && tlwwx->MacUsesCompositing() )
+    if ( tlwwx != NULL )
     {
         ControlRef rootControl = tlwwx->GetPeer()->GetControlRef() ;
         HIPoint hiPoint = CGPointMake( 0 , 0 ) ;