X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..bb996f289574defb0ae4339ae8e46ff3cf6fa54c:/src/osx/carbon/statbmp.cpp diff --git a/src/osx/carbon/statbmp.cpp b/src/osx/carbon/statbmp.cpp index ab6915452a..51c59cb55c 100644 --- a/src/osx/carbon/statbmp.cpp +++ b/src/osx/carbon/statbmp.cpp @@ -19,8 +19,6 @@ #include "wx/dcclient.h" #endif -IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) - /* * wxStaticBitmap */ @@ -68,7 +66,7 @@ void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) ) wxPaintDC dc(this); PrepareDC(dc); - if (m_bitmap.Ok()) + if (m_bitmap.IsOk()) { dc.DrawBitmap( m_bitmap , 0 , 0 , TRUE ) ; } @@ -76,7 +74,7 @@ void wxStaticBitmap::OnPaint( wxPaintEvent& WXUNUSED(event) ) wxSize wxStaticBitmap::DoGetBestSize() const { - if ( m_bitmap.Ok() ) + if ( m_bitmap.IsOk() ) return DoGetSizeFromClientSize( wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight()) ); // this is completely arbitrary