// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "bitmap.h"
#endif
-#include "wx/defs.h"
+#include "wx/wxprec.h"
#include "wx/bitmap.h"
#include "wx/icon.h"
wxBitmap::wxBitmap(const wxImage& image, int depth)
{
wxCHECK_RET( image.Ok(), wxT("invalid image") )
- wxCHECK_RET( depth == -1, wxT("invalid bitmap depth") )
m_refData = new wxBitmapRefData();
public:
inline wxPICTResourceHandler()
{
- m_name = wxT("Macintosh Pict resource");
- m_extension = wxEmptyString;
- m_type = wxBITMAP_TYPE_PICT_RESOURCE;
+ SetName(wxT("Macintosh Pict resource"));
+ SetExtension(wxEmptyString);
+ SetType(wxBITMAP_TYPE_PICT_RESOURCE);
};
virtual bool LoadFile(wxBitmap *bitmap, const wxString& name, long flags,