Fix a problem when exporting a single layer or anim frame, the chosen format was kept as the file's 'current format'. Also improve Brush load/save which has now mostly separate settings

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2002 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-09-21 20:10:33 +00:00
parent 440f04ad4f
commit 5a2e556f18
2 changed files with 26 additions and 8 deletions

View File

@@ -2018,8 +2018,7 @@ byte Button_Load_or_Save(byte load, T_IO_Context *context)
else // Sinon on essaye de charger ou sauver le fichier
{
strcpy(context->File_directory,Main_current_directory);
if (!load && !Get_fileformat(Main_format)->Palette_only)
Main_fileformat=Main_format;
context->Format = Main_format;
save_or_load_image=1;
}
}