From de6742cf8c6d7ddcbfca4eb71b0340948d4dd0b1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 10 Dec 2022 19:09:10 +0100 Subject: [PATCH] Also process frame time information. --- gif_loader.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gif_loader.cpp b/gif_loader.cpp index 3089f2f..66ddbaa 100644 --- a/gif_loader.cpp +++ b/gif_loader.cpp @@ -45,10 +45,15 @@ void GIFLoader::gif_frame(void *data, struct GIF_WHDR *whdr) { pictw.release(); + Array image_arr; + image_arr.push_back(whdr->time); + Ref img; img.instance(); img->create(whdr->xdim, whdr->ydim, false, Image::FORMAT_RGBA8, loader->pictd); - loader->_images.push_back(img); + image_arr.push_back(img); + + loader->_images.push_back(image_arr); pict = (uint32_t *)pictw.ptr();