X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a614483c35fce149e0394996420fc5ebc5a1493..a188ac2988b6fedeead7a809124b8eaa2290c020:/src/gtk/bitmap.cpp diff --git a/src/gtk/bitmap.cpp b/src/gtk/bitmap.cpp index 7811f87e54..65619c3d57 100644 --- a/src/gtk/bitmap.cpp +++ b/src/gtk/bitmap.cpp @@ -21,10 +21,7 @@ #include "wx/colour.h" #endif -// HP aCC for PA-RISC can't compile rawbmp.h -#if !defined(__HP_aCC) || !defined(__hppa) - #include "wx/rawbmp.h" -#endif +#include "wx/rawbmp.h" #include "wx/gtk/private/object.h" @@ -182,7 +179,7 @@ GdkBitmap *wxMask::GetBitmap() const } //----------------------------------------------------------------------------- -// wxBitmap +// wxBitmapRefData //----------------------------------------------------------------------------- class wxBitmapRefData: public wxGDIRefData @@ -229,17 +226,15 @@ wxBitmapRefData::~wxBitmapRefData() #endif // wxUSE_PALETTE } + +//----------------------------------------------------------------------------- +// wxBitmap //----------------------------------------------------------------------------- #define M_BMPDATA static_cast(m_refData) IMPLEMENT_DYNAMIC_CLASS(wxBitmap,wxGDIObject) -wxBitmap::wxBitmap(int width, int height, int depth) -{ - Create(width, height, depth); -} - wxBitmap::wxBitmap(const wxString &filename, wxBitmapType type) { LoadFile(filename, type); @@ -859,7 +854,7 @@ void wxBitmap::PurgeOtherRepresentations(wxBitmap::Representation keep) } } -#if !defined(__HP_aCC) || !defined(__hppa) +#ifdef wxHAS_RAW_BITMAP void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp) { void* bits = NULL; @@ -880,7 +875,7 @@ void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp) void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(data)) { } -#endif +#endif // wxHAS_RAW_BITMAP bool wxBitmap::HasAlpha() const {