Fix on loading all formats 'misc': Marking some formats 'Backup_done=0' didn't work because this flag was specialized for importing and exporting palettes (a modification of the image), without updating the image on screen or remembering the file name.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1183 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-11-14 17:16:46 +00:00
parent 17d3e62398
commit 33ef5cfde2
4 changed files with 63 additions and 58 deletions

View File

@@ -2619,7 +2619,7 @@ void Load_picture(byte image)
{
// Si c'est une image qu'on charge, on efface l'ancien commentaire
// C'est loin d'être indispensable, m'enfin bon...
if (Get_fileformat(Main_fileformat)->Backup_done)
if (! Get_fileformat(Main_fileformat)->Palette_only)
Main_comment[0]='\0';
Original_screen_X=0;
@@ -2683,7 +2683,7 @@ void Load_picture(byte image)
Cursor_shape=old_cursor_shape;
}
if ( (File_error==1) || (!Get_fileformat(Main_fileformat)->Backup_done) )
if ( (File_error==1) || (Get_fileformat(Main_fileformat)->Palette_only) )
{
do_not_restore=0;
if (File_error!=1)
@@ -2953,7 +2953,7 @@ void Save_picture(byte image)
Hide_cursor();
Cursor_shape=old_cursor_shape;
if ((File_error==1) || (!Get_fileformat(Main_fileformat)->Backup_done))
if ((File_error==1) || (Get_fileformat(Main_fileformat)->Palette_only))
do_not_restore=0;
Display_cursor();