X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc8f7aeed2c56f2fc5b100421dcde767a1e5981c..7890a36c9c34b5626ceada90956d0c69941a56af:/src/mac/carbon/dcmemory.cpp diff --git a/src/mac/carbon/dcmemory.cpp b/src/mac/carbon/dcmemory.cpp index 8e979247a9..a1f563080a 100644 --- a/src/mac/carbon/dcmemory.cpp +++ b/src/mac/carbon/dcmemory.cpp @@ -52,7 +52,7 @@ wxMemoryDC::~wxMemoryDC() { #if wxMAC_USE_CORE_GRAPHICS m_selected.EndRawAccess() ; - CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ; + CGContextRef bmCtx = ((wxMacCGContext*)(m_graphicContext))->GetNativeContext() ; delete m_graphicContext ; m_graphicContext = NULL ; CGContextRelease( bmCtx ) ; @@ -68,7 +68,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) { #if wxMAC_USE_CORE_GRAPHICS m_selected.EndRawAccess() ; - CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ; + CGContextRef bmCtx = ((wxMacCGContext*)(m_graphicContext))->GetNativeContext() ; delete m_graphicContext ; m_graphicContext = NULL ; CGContextRelease( bmCtx ) ;