]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/dockart.cpp
updates from Adrián González Alba
[wxWidgets.git] / src / aui / dockart.cpp
index 99f782d50936062b1586dfad96e0937061f18c98..563154c89e1d28e58ef37ec01f530f12361e58d8 100644 (file)
 
 #if wxUSE_AUI
 
-#include "wx/image.h"
 #include "wx/aui/framemanager.h"
 #include "wx/aui/dockart.h"
 
 #ifndef WX_PRECOMP
     #include "wx/settings.h"
     #include "wx/dcclient.h"
+    #include "wx/image.h"
+#endif
+
+#ifdef __WXMAC__
+#include "wx/mac/private.h"
 #endif
 
 // -- wxDefaultDockArt class implementation --
@@ -359,7 +363,7 @@ void wxDefaultDockArt::DrawBorder(wxDC& dc, const wxRect& _rect,
             rect.Deflate(1);
         }
     }
-     else
+    else
     {
         for (i = 0; i < border_width; ++i)
         {
@@ -381,7 +385,7 @@ void wxDefaultDockArt::DrawCaptionBackground(wxDC& dc, const wxRect& rect, bool
 
         dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height);
     }
-     else
+    else
     {
         if (active)
         {
@@ -430,7 +434,7 @@ void wxDefaultDockArt::DrawCaption(wxDC& dc,
 
     if (pane.state & wxPaneInfo::optionActive)
         dc.SetTextForeground(m_active_caption_text_colour);
-     else
+    else
         dc.SetTextForeground(m_inactive_caption_text_colour);