enabled palette code for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-04-02 23:02:02 +00:00
parent 4c27c3c631
commit 9724f75af5

View File

@ -126,9 +126,6 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const
else else
image->SetMask(FALSE); image->SetMask(FALSE);
// 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];
@ -143,7 +140,6 @@ 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++)