Skip to content
Snippets Groups Projects
Commit 4ada0b0a authored by Prisima the Fox's avatar Prisima the Fox Committed by Monster Iestyn
Browse files

Update m_anigif.c

Remember gif_frames starts at 0
parent d26ba2ee
Branches
Tags
2 merge requests!488Merge in next and don't billboard papersprites in GL,!276More accurate GIF delay
...@@ -492,8 +492,8 @@ static void GIF_framewrite(void) ...@@ -492,8 +492,8 @@ static void GIF_framewrite(void)
// screen regions are handled in GIF_lzw // screen regions are handled in GIF_lzw
{ {
int d1 = (int)((100.0/NEWTICRATE)*gif_frames); int d1 = (int)((100.0/NEWTICRATE)*gif_frames+1);
int d2 = (int)((100.0/NEWTICRATE)*(gif_frames-1)); int d2 = (int)((100.0/NEWTICRATE)*(gif_frames));
UINT16 delay = d1-d2; UINT16 delay = d1-d2;
INT32 startline; INT32 startline;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment