X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4055ed8281971e3d35bf04177193c27043d42ed1..8946ede10c2702c7acbb194fe8bd2793d7fb8358:/src/palmos/bitmap.cpp?ds=sidebyside diff --git a/src/palmos/bitmap.cpp b/src/palmos/bitmap.cpp index 77bf3659f6..674aa379a9 100644 --- a/src/palmos/bitmap.cpp +++ b/src/palmos/bitmap.cpp @@ -1,10 +1,10 @@ //////////////////////////////////////////////////////////////////////////// -// Name: bitmap.cpp +// Name: src/palmos/bitmap.cpp // Purpose: wxBitmap -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/08/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "bitmap.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,6 +24,8 @@ #pragma hdrstop #endif +#include "wx/bitmap.h" + #ifndef WX_PRECOMP #include @@ -36,23 +34,17 @@ #include "wx/app.h" #include "wx/palette.h" #include "wx/dcmemory.h" - #include "wx/bitmap.h" #include "wx/icon.h" + #include "wx/log.h" + #include "wx/image.h" #endif -#include "wx/log.h" - #if wxUSE_WXDIB #include "wx/palmos/dib.h" #endif -#include "wx/image.h" #include "wx/xpmdecod.h" -#ifdef wxHAVE_RAW_BITMAP -#include "wx/rawbmp.h" -#endif - // missing from mingw32 header #ifndef CLR_INVALID #define CLR_INVALID ((COLORREF)-1) @@ -215,16 +207,6 @@ wxBitmap::wxBitmap(const char bits[], int width, int height, int depth) Init(); } -// Create from XPM data -#if wxUSE_IMAGE && wxUSE_XPM -bool wxBitmap::CreateFromXpm(const char **data) -#else -bool wxBitmap::CreateFromXpm(const char **WXUNUSED(data)) -#endif -{ - return false; -} - wxBitmap::wxBitmap(int w, int h, int d) { } @@ -233,7 +215,7 @@ wxBitmap::wxBitmap(int w, int h, const wxDC& dc) { } -wxBitmap::wxBitmap(void *data, long type, int width, int height, int depth) +wxBitmap::wxBitmap(const void* data, long type, int width, int height, int depth) { } @@ -298,7 +280,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type) return false; } -bool wxBitmap::Create(void *data, long type, int width, int height, int depth) +bool wxBitmap::Create(const void* data, long type, int width, int height, int depth) { return false; } @@ -345,19 +327,6 @@ wxDC *wxBitmap::GetSelectedInto() const #endif -#if WXWIN_COMPATIBILITY_2_4 - -int wxBitmap::GetQuality() const -{ - return 0; -} - -#endif // WXWIN_COMPATIBILITY_2_4 - -void wxBitmap::UseAlpha() -{ -} - bool wxBitmap::HasAlpha() const { return false; @@ -387,30 +356,10 @@ void wxBitmap::SetMask(wxMask *mask) { } -#if WXWIN_COMPATIBILITY_2_4 - -void wxBitmap::SetQuality(int WXUNUSED(quality)) -{ -} - -#endif // WXWIN_COMPATIBILITY_2_4 - // ---------------------------------------------------------------------------- // raw bitmap access support // ---------------------------------------------------------------------------- -#ifdef wxHAVE_RAW_BITMAP -void *wxBitmap::GetRawData(wxPixelDataBase& data, int bpp) -{ - return NULL; -} - -void wxBitmap::UngetRawData(wxPixelDataBase& dataBase) -{ - return; -} -#endif // #ifdef wxHAVE_RAW_BITMAP - // ---------------------------------------------------------------------------- // wxMask // ---------------------------------------------------------------------------- @@ -466,7 +415,7 @@ bool wxMask::Create(const wxBitmap& bitmap, const wxColour& colour) // ---------------------------------------------------------------------------- bool wxBitmapHandler::Create(wxGDIImage *image, - void *data, + const void* data, long flags, int width, int height, int depth) { @@ -489,7 +438,7 @@ bool wxBitmapHandler::Save(wxGDIImage *image, } bool wxBitmapHandler::Create(wxBitmap *WXUNUSED(bitmap), - void *WXUNUSED(data), + const void* WXUNUSED(data), long WXUNUSED(type), int WXUNUSED(width), int WXUNUSED(height),