IMG_gif.c
changeset 721 2ab0052024a3
parent 720 58e4a9ae8cd2
child 722 63ec5ac0b0b8
equal deleted inserted replaced
720:58e4a9ae8cd2 721:2ab0052024a3
   330 
   330 
   331             frame->image = image;
   331             frame->image = image;
   332             frame->x = LM_to_uint(buf[0], buf[1]);
   332             frame->x = LM_to_uint(buf[0], buf[1]);
   333             frame->y = LM_to_uint(buf[2], buf[3]);
   333             frame->y = LM_to_uint(buf[2], buf[3]);
   334             frame->disposal = state.Gif89.disposal;
   334             frame->disposal = state.Gif89.disposal;
   335             frame->delay = state.Gif89.delayTime*10;
   335             frame->delay = (state.Gif89.delayTime < 2 ? 10 : state.Gif89.delayTime) * 10;
   336 
   336 
   337             if (!load_anim) {
   337             if (!load_anim) {
   338                 /* We only need one frame, we're done */
   338                 /* We only need one frame, we're done */
   339                 goto done;
   339                 goto done;
   340             }
   340             }