From ff7007184bf23c77fd9a58f6f32a93228d946592 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Sun, 16 Nov 2008 23:58:58 +0000 Subject: [PATCH] Mac fix for moving methods to non-virtual. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/graphics.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/graphics.cpp b/src/mac/carbon/graphics.cpp index 4446f29eb5..206e1e838c 100755 --- a/src/mac/carbon/graphics.cpp +++ b/src/mac/carbon/graphics.cpp @@ -1710,6 +1710,11 @@ void wxMacCoreGraphicsContext::Rotate( wxDouble angle ) m_windowTransform = CGAffineTransformRotate(m_windowTransform,angle); } +void wxGraphicsContext::DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) +{ + static_cast(this)->DrawBitmap(bmp, x, y, w, h); +} + void wxMacCoreGraphicsContext::DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) { wxGraphicsBitmap bitmap = GetRenderer()->CreateBitmap(bmp); @@ -2289,7 +2294,7 @@ wxGraphicsFont wxMacCoreGraphicsRenderer::CreateFont( const wxFont &font , const return wxNullGraphicsFont; } -wxGraphicsBitmap wxMacCoreGraphicsRenderer::CreateBitmap( const wxBitmap& bmp ) +wxGraphicsBitmap wxGraphicsRenderer::CreateBitmap( const wxBitmap& bmp ) { if ( bmp.Ok() ) {