]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/statbmp.cpp
speeding up rectangle drawing by using specific methods, needs 40% less time
[wxWidgets.git] / src / osx / carbon / statbmp.cpp
index 1034298f46a7e4a750372ba52ef0144cb744bea0..51c59cb55cfdf569be640a81d3d5d8e7f4881040 100644 (file)
@@ -66,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 ) ;
     }
@@ -74,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