Loading a GIF animation now shows first image instead of last image

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1916 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2012-03-04 17:26:48 +00:00
parent 641be48aad
commit 8852f59a95

View File

@ -788,8 +788,15 @@ void Load_image(T_IO_Context *context)
//Main_image_width= context->Width; //Main_image_width= context->Width;
//Main_image_height= context->Height; //Main_image_height= context->Height;
if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
{
Main_current_layer = 0;
}
else
{
Main_current_layer = context->Nb_layers - 1; Main_current_layer = context->Nb_layers - 1;
Main_layers_visible = (2<<Main_current_layer)-1; Main_layers_visible = (2<<Main_current_layer)-1;
}
// Load the transparency data // Load the transparency data
Main_backups->Pages->Transparent_color = context->Transparent_color; Main_backups->Pages->Transparent_color = context->Transparent_color;