X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3eb36dfb684dbed4309d7ea83f77731dcd67e50..264b3fc80fe33d1a239ad8e904ee9b318055e70d:/src/common/gifdecod.cpp?ds=inline diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index c08bf1fdf6..828afb82c8 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -126,9 +126,6 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const else image->SetMask(FALSE); - // Set the palette - // Palette creation not yet implemented on wxGTK -#ifndef __WXGTK__ if (pal) { unsigned char* r = new unsigned char[256]; @@ -143,7 +140,6 @@ 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++) @@ -469,9 +465,9 @@ int wxGIFDecoder::dgif(GIFImage *img, int interl, int bits) while (code != ab_fin); #ifdef __WXMAC__ - delete [] ab_prefix ; - delete [] ab_tail ; - delete [] stack ; + delete [] ab_prefix ; + delete [] ab_tail ; + delete [] stack ; #endif return 0; } @@ -508,7 +504,8 @@ int wxGIFDecoder::ReadGIF() unsigned char type = 0; unsigned char pal[768]; unsigned char buf[16]; - GIFImage **ppimg, *pimg, *pprev; + GIFImage **ppimg; + GIFImage *pimg, *pprev; /* check GIF signature */ if (!CanRead())