]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbmp.cpp
added const for Mac OS X compilation
[wxWidgets.git] / src / mac / carbon / statbmp.cpp
index fa75e68fd5aff8980aa7deb3085125c9d8a84e53..f85c66b456a8bdacc902160530fc756536a62f75 100644 (file)
@@ -14,6 +14,7 @@
 #endif
 
 #include "wx/statbmp.h"
 #endif
 
 #include "wx/statbmp.h"
+#include "wx/dcclient.h"
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
@@ -70,7 +71,7 @@ void wxStaticBitmap::OnPaint( wxPaintEvent &event )
     wxPaintDC dc(this);
     PrepareDC(dc);
        dc.SetPalette( *m_messageBitmap.GetPalette() ) ;
     wxPaintDC dc(this);
     PrepareDC(dc);
        dc.SetPalette( *m_messageBitmap.GetPalette() ) ;
-       dc.DrawBitmap( m_messageBitmap , 0 , 0 ) ;
+       dc.DrawBitmap( m_messageBitmap , 0 , 0 , TRUE ) ;
 }
 
 wxSize wxStaticBitmap::DoGetBestSize() const
 }
 
 wxSize wxStaticBitmap::DoGetBestSize() const