X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d610b90ffb5c212b429c717ebae5f605fc5fac7..4a377e137527eb7f4a26b9e3bc1cd88e8c108676:/src/common/gifdecod.cpp diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index a2137fab22..c08bf1fdf6 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -127,6 +127,8 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const image->SetMask(FALSE); // Set the palette + // Palette creation not yet implemented on wxGTK +#ifndef __WXGTK__ if (pal) { unsigned char* r = new unsigned char[256]; @@ -141,6 +143,7 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const image->SetPalette(wxPalette(256, r, g, b)); delete[] r; delete[] g; delete[] b; } +#endif /* copy image data */ for (i = 0; i < (GetWidth() * GetHeight()); i++, src++)