mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Fix gif animation speed reproduction.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user