Fix and improve Fl_GIF_Image (issue #271, #274)

- add error and EOF checks
- fix transparent pixel index outside ColorMap (#271)
- fix Fl_GIF_Image decoder bug (#274)
- add Fl_Image_Reader::skip(unsigned int)
- use new skip() method in GIF reader
This commit is contained in:
Albrecht Schlosser
2021-09-27 00:27:28 +02:00
parent 4075a14715
commit 1d847fec00
3 changed files with 179 additions and 88 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
//
// GIF image header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2020 by Bill Spitzak and others.
// Copyright 1998-2021 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -31,7 +31,7 @@ class FL_EXPORT Fl_GIF_Image : public Fl_Pixmap {
public:
Fl_GIF_Image(const char* filename);
Fl_GIF_Image(const char* imagename, const unsigned char *data);
Fl_GIF_Image(const char* imagename, const unsigned char *data, const long length = -1);
protected: