Commented out palette code for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2000-09-04 14:07:50 +00:00
parent 736b80cd76
commit b3eb36dfb6

View File

@ -127,6 +127,8 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
image->SetMask(FALSE); image->SetMask(FALSE);
// Set the palette // Set the palette
// Palette creation not yet implemented on wxGTK
#ifndef __WXGTK__
if (pal) if (pal)
{ {
unsigned char* r = new unsigned char[256]; unsigned char* r = new unsigned char[256];
@ -141,6 +143,7 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
image->SetPalette(wxPalette(256, r, g, b)); image->SetPalette(wxPalette(256, r, g, b));
delete[] r; delete[] g; delete[] b; delete[] r; delete[] g; delete[] b;
} }
#endif
/* copy image data */ /* copy image data */
for (i = 0; i < (GetWidth() * GetHeight()); i++, src++) for (i = 0; i < (GetWidth() * GetHeight()); i++, src++)