X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc797f4cc8ffe36277ba8b7dd4b57e63a96bfcb5..cd72551c2b6cbf67a4a5caf0ba00ba64e41183b2:/src/x11/palette.cpp?ds=sidebyside diff --git a/src/x11/palette.cpp b/src/x11/palette.cpp index 36bd8cfafc..8ee782b8e4 100644 --- a/src/x11/palette.cpp +++ b/src/x11/palette.cpp @@ -50,7 +50,7 @@ not the functionality that wxPalette::Create() aims to provide. #ifdef __VMS__ #pragma message enable nosimpint #endif -#include "wx/motif/private.h" +#include "wx/x11/private.h" IMPLEMENT_DYNAMIC_CLASS(wxPalette, wxGDIObject) IMPLEMENT_DYNAMIC_CLASS(wxXPalette, wxObject) @@ -89,6 +89,7 @@ wxPaletteRefData::~wxPaletteRefData() if (pix_array_n > 0) { +#if !wxUSE_NANOX // XFreeColors(display, cmap, pix_array, pix_array_n, 0); // Be careful not to free '0' pixels... int i, j; @@ -97,9 +98,10 @@ wxPaletteRefData::~wxPaletteRefData() if(j > i) XFreeColors(display, cmap, &pix_array[i], j-i, 0); while(j