Jump to content

Denis Sergeev

Members
  • Posts

    3
  • Joined

  • Last visited

  1. I'm sorry that I was not clear enough. But I want to restart any animated gif image from any position. I have written such function in gdisp_image_gif.c: void gdispImageReset_GIF(gdispImage *img) { gdispImagePrivate_GIF * priv = (gdispImagePrivate_GIF *)img->priv; gfileSetPos(img->f, priv->frame0pos); initFrameGif(img); } It seems to be working as I expect. What do you think about it? If it works well, you may add it to your repository. Or you can even implement generalized function, which may move file position to any specified frame at any time.
  2. I am using such construction to display GIF image: while (1) { gdispImageCache(&myImage); gdispImageDraw(&myImage, 0, 0, myImage.width, myImage.height, 0, 0) delay = gdispImageNext(&myImage); gfxSleepMilliseconds(delay); } I want to reset image, so that it will start displaying from the first frame. I haven't fount any function, which could perform such action. Can anybody suggest the solution?
×
×
  • Create New...