Skip to content

Commit

Permalink
Fix and improve Fl_GIF_Image (Issue fltk#271, fltk#274)
Browse files Browse the repository at this point in the history
- add error and EOF checks
- fix transparent pixel index outside ColorMap (Issue fltk#271)
- fix Fl_GIF_Image decoder bug (Issue fltk#274)

Work in progress, there's still room for improvements.
  • Loading branch information
Albrecht Schlosser committed Sep 26, 2021
1 parent 4075a14 commit 3add57d
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 80 deletions.
4 changes: 2 additions & 2 deletions FL/Fl_GIF_Image.H
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit 3add57d

Please sign in to comment.