Fix GIF loop frames.

This commit is contained in:
Glenn Maynard 2019-02-06 20:01:13 -06:00
parent ce261c1ecb
commit d38307d3bc

View File

@ -310,7 +310,7 @@ void SMXPanelAnimation::Load(const vector<SMXGif::SMXGifFrame> &frames, int pane
if(marker.color[3] == 0xFF && marker.color[0] >= 0x80) if(marker.color[3] == 0xFF && marker.color[0] >= 0x80)
{ {
// We shouldn't see more than one of these. If we do, use the first. // We shouldn't see more than one of these. If we do, use the first.
if(m_iLoopFrame != -1) if(m_iLoopFrame == -1)
m_iLoopFrame = frame_no; m_iLoopFrame = frame_no;
} }