#endif //WX_PRECOMP
#include "wx/renderer.h"
+#include "wx/toplevel.h"
+#include "wx/dcclient.h"
#include "wx/mac/uma.h"
// ----------------------------------------------------------------------------
if ( dc.IsKindOf( CLASSINFO( wxPaintDC ) ) == false )
{
- Rect r = { splitterRect.origin.y , splitterRect.origin.x ,
- splitterRect.origin.y + splitterRect.size.height , splitterRect.origin.x + splitterRect.size.width } ;
+ Rect r = { (short) splitterRect.origin.y , (short) splitterRect.origin.x ,
+ (short) (splitterRect.origin.y + splitterRect.size.height) , (short) (splitterRect.origin.x + splitterRect.size.width) } ;
RgnHandle updateRgn = NewRgn() ;
RectRgn( updateRgn , &r ) ;
HIViewSetNeedsDisplayInRegion( (HIViewRef) win->GetHandle() , updateRgn , true ) ;
}
else
{
+#if wxMAC_USE_CORE_GRAPHICS
+#else
CGContextRef cgContext ;
Rect bounds ;
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
HIThemeDrawPaneSplitter( &splitterRect , &drawInfo , cgContext , kHIThemeOrientationNormal ) ;
}
QDEndCGContext( (CGrafPtr) dc.m_macPort , &cgContext ) ;
+#endif
}
}
else