git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62233
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
#include "wx/metafile.h"
#endif
#include "wx/metafile.h"
+#include "wx/xpmdecod.h"
+
#include "wx/rawbmp.h"
IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
#include "wx/rawbmp.h"
IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
void Free();
void SetOk( bool isOk) { m_ok = isOk; }
void Free();
void SetOk( bool isOk) { m_ok = isOk; }
-#if WXWIN_COMPATIBILITY_2_8
void SetWidth( int width ) { m_width = width; }
void SetHeight( int height ) { m_height = height; }
void SetDepth( int depth ) { m_depth = depth; }
void SetWidth( int width ) { m_width = width; }
void SetHeight( int height ) { m_height = height; }
void SetDepth( int depth ) { m_depth = depth; }
int GetWidth() const { return m_width; }
int GetHeight() const { return m_height; }
int GetWidth() const { return m_width; }
int GetHeight() const { return m_height; }
CGContextRef GetBitmapContext() const;
int GetBytesPerRow() const { return m_bytesPerRow; }
CGContextRef GetBitmapContext() const;
int GetBytesPerRow() const { return m_bytesPerRow; }
bool Create(int width , int height , int depth);
void Init();
bool Create(int width , int height , int depth);
void Init();
{
// setup the header properly
{
// setup the header properly
- Handle data;
- Handle maskdata;
- unsigned char * maskptr;
- unsigned char * ptr;
+ Handle data = NULL ;
+ Handle maskdata = NULL ;
+ unsigned char * maskptr = NULL ;
+ unsigned char * ptr = NULL ;
size_t datasize, masksize ;
datasize = sz * sz * 4 ;
size_t datasize, masksize ;
datasize = sz * sz * 4 ;
return M_BITMAPDATA->HasAlpha() ;
}
return M_BITMAPDATA->HasAlpha() ;
}
-#if WXWIN_COMPATIBILITY_2_8
void wxBitmap::SetWidth(int w)
{
AllocExclusive();
void wxBitmap::SetWidth(int w)
{
AllocExclusive();
AllocExclusive();
M_BITMAPDATA->SetDepth(d);
}
AllocExclusive();
M_BITMAPDATA->SetDepth(d);
}
-#endif // WXWIN_COMPATIBILITY_2_8
void wxBitmap::SetOk(bool isOk)
{
void wxBitmap::SetOk(bool isOk)
{