old style casts for no-rtti builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -162,7 +162,7 @@ wxRendererMac::DrawHeaderButton(wxWindow *win,
|
||||
{
|
||||
CGContextRef cgContext ;
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
cgContext = dynamic_cast<wxMacCGContext*>(dc.GetGraphicContext())->GetNativeContext() ;
|
||||
cgContext = (wxMacCGContext*)(dc.GetGraphicContext())->GetNativeContext() ;
|
||||
#else
|
||||
Rect bounds ;
|
||||
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
||||
@@ -286,7 +286,7 @@ wxRendererMac::DrawSplitterSash(wxWindow *win,
|
||||
{
|
||||
CGContextRef cgContext ;
|
||||
#if wxMAC_USE_CORE_GRAPHICS
|
||||
cgContext = dynamic_cast<wxMacCGContext*>(dc.GetGraphicContext())->GetNativeContext() ;
|
||||
cgContext = (wxMacCGContext*)(dc.GetGraphicContext())->GetNativeContext() ;
|
||||
#else
|
||||
Rect bounds ;
|
||||
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
||||
|
Reference in New Issue
Block a user