add function Get_image_mode()

just as there is Set_image_mode()
This commit is contained in:
Thomas Bernard
2019-11-29 01:03:45 +01:00
parent f8c06cd575
commit 4fa256398c
4 changed files with 13 additions and 1 deletions

View File

@@ -5768,7 +5768,7 @@ void Load_FLI(T_IO_Context * context)
else
{
Set_loading_layer(context, current_frame);
if (context->Type == CONTEXT_MAIN_IMAGE && Main.backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
if (context->Type == CONTEXT_MAIN_IMAGE && Get_image_mode(context) == IMAGE_MODE_ANIMATION)
{
// Copy the content of previous frame
memcpy(