X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eec7f4127f262645d47e7a81a6c0a2db61e7545a..9ed79eee4ee3f8c83a87094eef4b7c933663001b:/src/aui/dockart.cpp diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index f26a5bbaf1..1eab5042d2 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -36,6 +36,7 @@ #ifdef __WXMAC__ #include "wx/mac/private.h" +#include "wx/graphics.h" #endif #ifdef __WXGTK__ @@ -312,7 +313,7 @@ void wxDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation, con HIRect splitterRect = CGRectMake( rect.x , rect.y , rect.width , rect.height ); CGContextRef cgContext ; #if wxMAC_USE_CORE_GRAPHICS - cgContext = ((wxMacCGContext*)(dc.GetGraphicContext()))->GetNativeContext() ; + cgContext = (CGContextRef) dc.GetGraphicsContext()->GetNativeContext() ; #else Rect bounds ; GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;