]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/renderer.cpp
better guarding when no printing architecture exists (patch from Joel Low)
[wxWidgets.git] / src / osx / carbon / renderer.cpp
index abcc1d6aa2b655e960921e2b1af05663199ec120..bac3e528c4a04ed06c7a798a759705109433d9c5 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "wx/renderer.h"
 #include "wx/graphics.h"
-#include "wx/mac/uma.h"
+#include "wx/osx/private.h"
 
 
 class WXDLLEXPORT wxRendererMac : public wxDelegateRendererNative
@@ -236,7 +236,7 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
     wxOrientation orient,
     int WXUNUSED(flags) )
 {
-    bool hasMetal = win->MacGetTopLevelWindow()->MacGetMetalAppearance();
+    bool hasMetal = win->MacGetTopLevelWindow()->GetExtraStyle() & wxFRAME_EX_METAL;
     SInt32 height;
     GetThemeMetric( kThemeMetricSmallPaneSplitterHeight, &height );
     HIRect splitterRect;