]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/renderer.cpp
alpha support for Scale added
[wxWidgets.git] / src / mac / carbon / renderer.cpp
index 544b0c9c27b477c8726a85a583f270ba3baf13c6..c1cf97a2e4c200b490affe641f1a53852851b2dd 100644 (file)
@@ -32,6 +32,8 @@
 #endif //WX_PRECOMP
 
 #include "wx/renderer.h"
+#include "wx/toplevel.h"
+#include "wx/dcclient.h"
 #include "wx/mac/uma.h"
 
 // ----------------------------------------------------------------------------
@@ -268,6 +270,8 @@ wxRendererMac::DrawSplitterSash(wxWindow *win,
         }
         else
         {
+#if wxMAC_USE_CORE_GRAPHICS
+#else
             CGContextRef cgContext ;
             Rect bounds ;
             GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
@@ -283,6 +287,7 @@ wxRendererMac::DrawSplitterSash(wxWindow *win,
                 HIThemeDrawPaneSplitter( &splitterRect , &drawInfo , cgContext , kHIThemeOrientationNormal ) ;    
             }
             QDEndCGContext( (CGrafPtr) dc.m_macPort , &cgContext ) ;
+#endif
         }
     }
     else