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();