From b3eb36dfb684dbed4309d7ea83f77731dcd67e50 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 4 Sep 2000 14:07:50 +0000 Subject: [PATCH] Commented out palette code for wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/gifdecod.cpp | 3 +++ 1 file changed, 3 insertions(+) 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++) -- 2.45.2