From 1d847fec00cbcfc82e4864802c2686575101f1ee Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 27 Sep 2021 00:27:28 +0200 Subject: 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 --- FL/Fl_GIF_Image.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FL') diff --git a/FL/Fl_GIF_Image.H b/FL/Fl_GIF_Image.H index 673e9c0a7..274af9a57 100644 --- a/FL/Fl_GIF_Image.H +++ b/FL/Fl_GIF_Image.H @@ -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: -- cgit v1.2.3