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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user