Update m_anigif.c

More accurate GIF delay.
This commit is contained in:
PrisimaTheFox 2018-09-09 23:16:28 -05:00 committed by Monster Iestyn
parent 4b5ebef6c2
commit d26ba2ee54
1 changed files with 3 additions and 1 deletions

View File

@ -492,7 +492,9 @@ static void GIF_framewrite(void)
// screen regions are handled in GIF_lzw
{
UINT16 delay = 3; // todo
int d1 = (int)((100.0/NEWTICRATE)*gif_frames);
int d2 = (int)((100.0/NEWTICRATE)*(gif_frames-1));
UINT16 delay = d1-d2;
INT32 startline;
WRITEMEM(p, gifframe_gchead, 4);