summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-01-28 00:14:49 +0100
committerMatthias Melcher <github@matthiasm.com>2024-01-28 00:14:49 +0100
commitfa8799bcef0da392fd344ed019154bd84ccd3e5b (patch)
tree1e8fbc5415053c4d554b7ec85debca9a16ee89b2
parent444ee8bc3674002d3aa315ad666638b00f145bed (diff)
Fix animated gif reloading (#897)
-rw-r--r--src/Fl_Anim_GIF_Image.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_Anim_GIF_Image.cxx b/src/Fl_Anim_GIF_Image.cxx
index e6481be73..09e35095d 100644
--- a/src/Fl_Anim_GIF_Image.cxx
+++ b/src/Fl_Anim_GIF_Image.cxx
@@ -266,6 +266,7 @@ void Fl_Anim_GIF_Image::FrameInfo::dispose(int frame) {
bool Fl_Anim_GIF_Image::FrameInfo::load(const char *name, const unsigned char *data, size_t length) {
// decode using FLTK
valid = false;
+ anim->ld(0);
if (data) {
anim->Fl_GIF_Image::load(name, data, length, true); // calls on_frame_data() for each frame
} else {