X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc468a0a6476eff5996c80580e27b506340c305..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/ctrlrend.cpp?ds=sidebyside diff --git a/src/univ/ctrlrend.cpp b/src/univ/ctrlrend.cpp index 1a55bb9576..27d9b1e809 100644 --- a/src/univ/ctrlrend.cpp +++ b/src/univ/ctrlrend.cpp @@ -95,10 +95,10 @@ void wxControlRenderer::DrawButtonLabel(const wxBitmap& bitmap, m_dc.SetTextForeground(m_window->GetForegroundColour()); wxString label = m_window->GetLabel(); - if ( !label.empty() || bitmap.Ok() ) + if ( !label.empty() || bitmap.IsOk() ) { wxRect rectLabel = m_rect; - if ( bitmap.Ok() ) + if ( bitmap.IsOk() ) { rectLabel.Inflate(-marginX, -marginY); } @@ -158,7 +158,7 @@ void wxControlRenderer::DrawBitmap(wxDC &dc, { // we may change the bitmap if we stretch it wxBitmap bmp = bitmap; - if ( !bmp.Ok() ) + if ( !bmp.IsOk() ) return; int width = bmp.GetWidth(),