(mode5 branch) Fix a bug in saving, including autosave every few minutes, that auto-selects the last layer to draw.

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/cpcmode5@1743 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-03-02 22:07:24 +00:00
parent 9058926e4b
commit 55422d160e
4 changed files with 32 additions and 20 deletions

View File

@@ -2085,7 +2085,7 @@ void Load_GIF(T_IO_Context * context)
// This a second layer/frame, or more.
// Attempt to add a layer to current image
current_layer++;
Set_layer(context, current_layer);
Set_loading_layer(context, current_layer);
}
number_LID++;
@@ -2444,7 +2444,7 @@ void Save_GIF(T_IO_Context * context)
GCE_block[3] |= 1; // Transparent color flag
GCE_block[6] = context->Transparent_color;
Set_layer(context, current_layer);
Set_saving_layer(context, current_layer);
if (current_layer == context->Nb_layers -1)
{