X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3cd0b8c5b5a320bba065c4da306be3687d144157..c60ba92d097bd49e204f140f22ade84a1b6bc38c:/src/x11/colour.cpp diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 347c6df140..cf8302dd51 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -82,11 +82,11 @@ unsigned short wxColourRefData::colMapAllocCounter[ 256 ] = void wxColourRefData::FreeColour() { +#if 0 if (m_colormap) { Colormap cm = (Colormap)m_colormap; -#if 0 GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) m_colormap; if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) || (private_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR)) @@ -97,8 +97,8 @@ void wxColourRefData::FreeColour() if (colMapAllocCounter[ idx ] == 0) gdk_colormap_free_colors( m_colormap, &m_color, 1 ); } -#endif } +#endif } void wxColourRefData::AllocColour( WXColormap cmap )