#include "wx/gdicmn.h"
#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
#include <gdk/gdkprivate.h>
//-----------------------------------------------------------------------------
GdkColormap *m_colormap;
bool m_hasPixel;
- friend wxColour;
+ friend class wxColour;
};
wxColourRefData::wxColourRefData()
bool wxColour::operator != ( const wxColour& col) const
{
- return m_refData != col.m_refData;
+ return !(*this == col);
}
void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )
M_COLDATA->FreeColour();
+#ifdef __WXGTK20__
+ if ((cmap->visual->type == GDK_VISUAL_GRAYSCALE) ||
+ (cmap->visual->type == GDK_VISUAL_PSEUDO_COLOR))
+#else
GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) cmap;
if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) ||
(private_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR))
+#endif
{
GdkColor *colors = cmap->colors;
int max = 3 * (65536);