]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/toolbar.cpp
removing non-compositing code, adding individual transparency
[wxWidgets.git] / src / mac / carbon / toolbar.cpp
index 9b1ef2d3c96c09f3fcbf603de35525a815277546..cbc918a1011ccb127d382e976facf7d1509bf621 100644 (file)
@@ -19,8 +19,6 @@
     #include "wx/wx.h"
 #endif
 
-#include "wx/bitmap.h"
-
 #include "wx/mac/uma.h"
 #include "wx/geometry.h"
 
@@ -394,13 +392,6 @@ void wxToolBarTool::SetPosition( const wxPoint& position )
     int mac_x = position.x;
     int mac_y = position.y;
 
-    if ( ! GetToolBar()->MacGetTopLevelWindow()->MacUsesCompositing() )
-    {
-        GetToolBar()->MacWindowToRootWindow( &x, &y );
-        mac_x += x;
-        mac_y += y;
-    }
-
     if ( IsButton() )
     {
         Rect contrlRect;