X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69342052a474bd322a57a9ed8c0d2858ebe2bac2..d60e233244ce3af5192815ddb6ffe9e17b07e75e:/src/mac/carbon/renderer.cpp diff --git a/src/mac/carbon/renderer.cpp b/src/mac/carbon/renderer.cpp index a739a49c57..d726076a49 100644 --- a/src/mac/carbon/renderer.cpp +++ b/src/mac/carbon/renderer.cpp @@ -135,8 +135,6 @@ wxRendererMac::DrawHeaderButton(wxWindow *win, const wxRect& rect, int flags) { - const int CORNER = 1; - const wxCoord x = rect.x-1, y = rect.y-1, w = rect.width, @@ -164,7 +162,7 @@ wxRendererMac::DrawHeaderButton(wxWindow *win, { CGContextRef cgContext ; #if wxMAC_USE_CORE_GRAPHICS - cgContext = dynamic_cast(dc.GetGraphicContext())->GetNativeContext() ; + cgContext = ((wxMacCGContext*)(dc.GetGraphicContext()))->GetNativeContext() ; #else Rect bounds ; GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ; @@ -288,7 +286,7 @@ wxRendererMac::DrawSplitterSash(wxWindow *win, { CGContextRef cgContext ; #if wxMAC_USE_CORE_GRAPHICS - cgContext = dynamic_cast(dc.GetGraphicContext())->GetNativeContext() ; + cgContext = ((wxMacCGContext*)(dc.GetGraphicContext()))->GetNativeContext() ; #else Rect bounds ; GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;