X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eeca3a46971303c5a7fbcfd25313de26b512cd30..c8b204e6fd541515bead44e1be86ab8cb44a35d3:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index 51318de205..fe48bf366a 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -58,7 +58,9 @@ public: unsigned char m_maskRed,m_maskGreen,m_maskBlue; bool m_ok; bool m_static; +#if wxUSE_PALETTE wxPalette m_palette; +#endif // wxUSE_PALETTE wxArrayString m_optionNames; wxArrayString m_optionValues; }; @@ -718,6 +720,8 @@ int wxImage::GetHeight() const return M_IMGDATA->m_height; } +#if wxUSE_PALETTE + // Palette functions bool wxImage::HasPalette() const @@ -742,6 +746,8 @@ void wxImage::SetPalette(const wxPalette& palette) M_IMGDATA->m_palette = palette; } +#endif // wxUSE_PALETTE + // Option functions (arbitrary name/value mapping) void wxImage::SetOption(const wxString& name, const wxString& value) {