X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/775c6f0cd21023a0bcb409b25b57504abb4b6dc4..ff1865910312d960737474a75a77737d5ce94864:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index f814deabba..4c145b247d 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -103,7 +103,6 @@ public: #if wxUSE_GUI // convertion to/from wxBitmap (deprecated, use wxBitmap's methods instead): wxImage( const wxBitmap &bitmap ); - operator wxBitmap() const { return ConvertToBitmap(); } wxBitmap ConvertToBitmap() const; #ifdef __WXGTK__ wxBitmap ConvertToMonoBitmap( unsigned char red, unsigned char green, unsigned char blue ) const; @@ -186,10 +185,12 @@ public: void SetMask( bool mask = TRUE ); bool HasMask() const; +#if wxUSE_PALETTE // Palette functions bool HasPalette() const; const wxPalette& GetPalette() const; void SetPalette(const wxPalette& palette); +#endif // wxUSE_PALETTE // Option functions (arbitrary name/value mapping) void SetOption(const wxString& name, const wxString& value);