* Fix CPC palette for Mode 5 files : add 'undocumented' color codes

* Fix "layer support" detection, it didn't work for Mode 5.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1966 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2012-06-24 18:03:21 +00:00
parent dee88e4517
commit 86d67e4658
2 changed files with 37 additions and 26 deletions

View File

@@ -968,9 +968,9 @@ void Save_image(T_IO_Context *context)
switch (context->Type)
{
case CONTEXT_MAIN_IMAGE:
if (!File_formats[context->Format-1].Supports_layers
&& Main_backups->Pages->Nb_layers > 1
&& !File_formats[context->Format-1].Palette_only)
if ((!Get_fileformat(context->Format)->Supports_layers)
&& (Main_backups->Pages->Nb_layers > 1)
&& (!Get_fileformat(context->Format)->Palette_only))
{
if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
{