X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/489468feaa08b8f504735eecca522fb8d0f825d2..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/osx/carbon/statbmp.cpp?ds=inline diff --git a/src/osx/carbon/statbmp.cpp b/src/osx/carbon/statbmp.cpp index 8948b0c3e5..51c59cb55c 100644 --- a/src/osx/carbon/statbmp.cpp +++ b/src/osx/carbon/statbmp.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/statbmp.cpp +// Name: src/osx/carbon/statbmp.cpp // Purpose: wxStaticBitmap // Author: Stefan Csomor // Modified by: @@ -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