This fixes compilation problems with the minimal build of wxGTK and will make
removing palette support in the future simpler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66088
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// check if the given attributes are supported without creating a canvas
static bool IsDisplaySupported(const int *attribList);
// check if the given attributes are supported without creating a canvas
static bool IsDisplaySupported(const int *attribList);
const wxPalette *GetPalette() const { return &m_palette; }
const wxPalette *GetPalette() const { return &m_palette; }
// miscellaneous helper functions
// ------------------------------
// miscellaneous helper functions
// ------------------------------
// (currently only implemented in wxX11 and wxMotif ports)
virtual int GetColourIndex(const wxColour& WXUNUSED(col)) { return -1; }
// (currently only implemented in wxX11 and wxMotif ports)
virtual int GetColourIndex(const wxColour& WXUNUSED(col)) { return -1; }
- // create default palette if we're not using RGBA mode
- // (not supported in most ports)
- virtual wxPalette CreateDefaultPalette() { return wxNullPalette; }
-
// check if the given extension name is present in the space-separated list
// of extensions supported by the current implementation such as returned
// by glXQueryExtensionsString() or glGetString(GL_EXTENSIONS)
static bool IsExtensionInList(const char *list, const char *extension);
// check if the given extension name is present in the space-separated list
// of extensions supported by the current implementation such as returned
// by glXQueryExtensionsString() or glGetString(GL_EXTENSIONS)
static bool IsExtensionInList(const char *list, const char *extension);
+#if wxUSE_PALETTE
+ // create default palette if we're not using RGBA mode
+ // (not supported in most ports)
+ virtual wxPalette CreateDefaultPalette() { return wxNullPalette; }
+
#if WXWIN_COMPATIBILITY_2_8
wxGLContext *m_glContext;
#if WXWIN_COMPATIBILITY_2_8
wxGLContext *m_glContext;
long style,
const wxString& name,
const int *attribList,
long style,
const wxString& name,
const int *attribList,
- const wxPalette& WXUNUSED_UNLESS_DEBUG(palette))
+ const wxPalette& palette)
wxASSERT_MSG( !palette.IsOk(), wxT("palettes not supported") );
wxASSERT_MSG( !palette.IsOk(), wxT("palettes not supported") );
+#endif // wxUSE_PALETTE
+ wxUnusedVar(palette); // Unused when wxDEBUG_LEVEL==0
m_exposed = false;
m_noExpose = true;
m_exposed = false;
m_noExpose = true;