Skip to content

Commit

Permalink
Fix gif animation speed reproduction.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Nov 24, 2024
1 parent f0b0f53 commit 5afa37f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/ecode/ecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,9 @@ void App::loadImageFromMedium( const std::string& path, bool isMemory ) {
IOStream* stream = isMemory
? (IOStream*)new IOStreamMemory( path.c_str(), path.size() )
: (IOStream*)new IOStreamFile( path );
image = Sprite::fromGif( *stream );
Sprite* sprite = Sprite::fromGif( *stream );
sprite->setAutoAnimate( false );
image = sprite;
delete stream;
}

Expand Down

0 comments on commit 5afa37f

Please sign in to comment.