mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Remove frameNum from GifEncoder::writeLoopExtension()
This commit is contained in:
parent
e71fd36c24
commit
96080a378c
@ -797,16 +797,16 @@ private:
|
||||
|
||||
memcpy(extension_bytes, "NETSCAPE2.0", 11);
|
||||
if (EGifPutExtensionFirst(m_gifFile, APPLICATION_EXT_FUNC_CODE, 11, extension_bytes) == GIF_ERROR)
|
||||
throw Exception("Error writing GIF graphics extension record for frame %d.\n", (int)m_frameNum);
|
||||
throw Exception("Error writing GIF graphics extension record.\n");
|
||||
|
||||
extension_bytes[0] = 1;
|
||||
extension_bytes[1] = (m_loop & 0xff);
|
||||
extension_bytes[2] = (m_loop >> 8) & 0xff;
|
||||
if (EGifPutExtensionNext(m_gifFile, APPLICATION_EXT_FUNC_CODE, 3, extension_bytes) == GIF_ERROR)
|
||||
throw Exception("Error writing GIF graphics extension record for frame %d.\n", (int)m_frameNum);
|
||||
throw Exception("Error writing GIF graphics extension record.\n");
|
||||
|
||||
if (EGifPutExtensionLast(m_gifFile, APPLICATION_EXT_FUNC_CODE, 0, NULL) == GIF_ERROR)
|
||||
throw Exception("Error writing GIF graphics extension record for frame %d.\n", (int)m_frameNum);
|
||||
throw Exception("Error writing GIF graphics extension record.\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user