X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..c4f4cf895c1576d2c474a8ebec5d3ee01b98d5f7:/src/x11/palette.cpp?ds=sidebyside diff --git a/src/x11/palette.cpp b/src/x11/palette.cpp index ef2b2597a6..8ee782b8e4 100644 --- a/src/x11/palette.cpp +++ b/src/x11/palette.cpp @@ -46,11 +46,11 @@ not the functionality that wxPalette::Create() aims to provide. #ifdef __VMS__ #pragma message disable nosimpint #endif -#include + #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