X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9d59a587c0d52ac94dbc5fcc3fb0825e6bba14a..59840ba3b16e4baf3228dd79c6b7ae40b55cf488:/src/univ/scrarrow.cpp?ds=sidebyside diff --git a/src/univ/scrarrow.cpp b/src/univ/scrarrow.cpp index 3bcf176b16..22f42060b7 100644 --- a/src/univ/scrarrow.cpp +++ b/src/univ/scrarrow.cpp @@ -134,17 +134,18 @@ void wxScrollArrows::DrawArrow(Arrow arrow, { wxUP, wxDOWN } }; - void (wxRenderer::*pfn)(wxDC&, wxDirection, const wxRect&, int) = - scrollbarLike ? &wxRenderer::DrawScrollbarArrow - : &wxRenderer::DrawArrow; - - (m_control->GetRenderer()->*pfn) - ( - dc, - arrowDirs[m_control->IsVertical()][arrow], - rect, - m_control->GetArrowState(arrow) - ); + if ( scrollbarLike ) + m_control->GetRenderer()->DrawScrollbarArrow( + dc, + arrowDirs[m_control->IsVertical()][arrow], + rect, + m_control->GetArrowState(arrow)); + else + m_control->GetRenderer()->DrawArrow( + dc, + arrowDirs[m_control->IsVertical()][arrow], + rect, + m_control->GetArrowState(arrow)); } // ----------------------------------------------------------------------------