]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcclient.cpp
Updated list of subprojects.
[wxWidgets.git] / src / mac / carbon / dcclient.cpp
index e0450205976d25ec1754817814180a1b553733b2..fc005335a256d9e98211aacf5d253c3dc1bd52a7 100644 (file)
     #include "wx/log.h"
     #include "wx/window.h"
     #include "wx/dcmemory.h"
+    #include "wx/settings.h"
+    #include "wx/toplevel.h"
+    #include "wx/math.h"
+    #include "wx/region.h"
 #endif
 
-#include "wx/region.h"
-#include "wx/toplevel.h"
-#include "wx/settings.h"
-#include "wx/math.h"
 #include "wx/mac/private.h"
 
 //-----------------------------------------------------------------------------
 // constants
 //-----------------------------------------------------------------------------
 
-#define RAD2DEG 57.2957795131
-
 //-----------------------------------------------------------------------------
 // wxPaintDC
 //-----------------------------------------------------------------------------
@@ -78,7 +76,7 @@ static wxBrush MacGetBackgroundBrush( wxWindow* window )
             if ( parent->IsKindOf( CLASSINFO( wxNotebook ) )
 #if wxUSE_TAB_DIALOG
                  || parent->IsKindOf( CLASSINFO( wxTabCtrl ) )
-#endif // wxUSE_TAB_DIALOG 
+#endif // wxUSE_TAB_DIALOG
                 )
             {
                 Rect extent = { 0 , 0 , 0 , 0 } ;
@@ -124,7 +122,6 @@ wxWindowDC::wxWindowDC(wxWindow *window)
     WindowRef windowref = (WindowRef) rootwindow->MacGetWindowRef() ;
     int x , y ;
     x = y = 0 ;
-    wxSize size = window->GetSize() ;
     window->MacWindowToRootWindow( &x , &y ) ;
     m_macPort = UMAGetWindowPort( windowref ) ;
     m_ok = true ;