IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxBitmapBase)
-wxBitmap::wxBitmap(int width, int height, int depth)
-{
- Create(width, height, depth);
-}
-
bool wxBitmap::Create(const wxIDirectFBSurfacePtr& surface)
{
UnRef();
wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") );
AllocExclusive();
- delete M_BITMAP->m_palette;
- M_BITMAP->m_palette = NULL;
+ wxDELETE(M_BITMAP->m_palette);
if ( !palette.Ok() ) return;