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:
Stefan Csomor
2005-02-27 17:01:16 +00:00
parent f686d8ad4f
commit bc8f7aeed2
7 changed files with 27 additions and 27 deletions

View File

@@ -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 ) ;