Move some things to wxBitmapBase to avoid much duplication.

Use proper const for XPM data, and const void* for arbitary bitmap data.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-10-08 08:04:49 +00:00
parent 9ce05df4bc
commit 452418c4b0
33 changed files with 166 additions and 479 deletions

View File

@@ -30,10 +30,7 @@
#include "wx/filefn.h"
#include "wx/wfstream.h"
#if wxUSE_XPM
#include "wx/xpmdecod.h"
#endif
#include "wx/xpmdecod.h"
// For memcpy
#include <string.h>
@@ -165,17 +162,12 @@ wxImage::wxImage( wxInputStream& stream, const wxString& mimetype, int index )
}
#endif // wxUSE_STREAMS
wxImage::wxImage( const char** xpmData )
wxImage::wxImage(const char* const* xpmData)
{
Create(xpmData);
}
wxImage::wxImage( char** xpmData )
{
Create((const char**) xpmData);
}
bool wxImage::Create( const char** xpmData )
bool wxImage::Create(const char* const* xpmData)
{
#if wxUSE_XPM
UnRef();