better fix for aCC and rawbmp.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,8 +87,12 @@
|
|||||||
/* Direct access to bitmap data is not implemented in all ports yet */
|
/* Direct access to bitmap data is not implemented in all ports yet */
|
||||||
#if defined(__WXGTK20__) || defined(__WXMAC__) || defined(__WXDFB__) || \
|
#if defined(__WXGTK20__) || defined(__WXMAC__) || defined(__WXDFB__) || \
|
||||||
(defined(__WXMSW__) && !defined(__WATCOMC__))
|
(defined(__WXMSW__) && !defined(__WATCOMC__))
|
||||||
|
|
||||||
|
// HP aCC for PA-RISC can't compile rawbmp.h
|
||||||
|
#if !defined(__HP_aCC) || !defined(__hppa)
|
||||||
#define wxHAS_RAW_BITMAP
|
#define wxHAS_RAW_BITMAP
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* also define deprecated synonym which exists for compatibility only */
|
/* also define deprecated synonym which exists for compatibility only */
|
||||||
#ifdef wxHAS_RAW_BITMAP
|
#ifdef wxHAS_RAW_BITMAP
|
||||||
|
@@ -12,6 +12,10 @@
|
|||||||
#ifndef _WX_RAWBMP_H_
|
#ifndef _WX_RAWBMP_H_
|
||||||
#define _WX_RAWBMP_H_
|
#define _WX_RAWBMP_H_
|
||||||
|
|
||||||
|
#include "wx/defs.h"
|
||||||
|
|
||||||
|
#ifdef wxHAS_RAW_BITMAP
|
||||||
|
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "wx/bitmap.h"
|
#include "wx/bitmap.h"
|
||||||
|
|
||||||
@@ -749,4 +753,5 @@ struct wxPixelIterator : public wxPixelData<Image, PixelFormat>::Iterator
|
|||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // wxHAS_RAW_BITMAP
|
||||||
#endif // _WX_RAWBMP_H_
|
#endif // _WX_RAWBMP_H_
|
||||||
|
@@ -21,10 +21,7 @@
|
|||||||
#include "wx/colour.h"
|
#include "wx/colour.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// HP aCC for PA-RISC can't compile rawbmp.h
|
|
||||||
#if !defined(__HP_aCC) || !defined(__hppa)
|
|
||||||
#include "wx/rawbmp.h"
|
#include "wx/rawbmp.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/gtk/private/object.h"
|
#include "wx/gtk/private/object.h"
|
||||||
|
|
||||||
@@ -859,7 +856,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 *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
|
||||||
{
|
{
|
||||||
void* bits = NULL;
|
void* bits = NULL;
|
||||||
@@ -880,7 +877,7 @@ void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp)
|
|||||||
void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(data))
|
void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(data))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif // wxHAS_RAW_BITMAP
|
||||||
|
|
||||||
bool wxBitmap::HasAlpha() const
|
bool wxBitmap::HasAlpha() const
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user