(trunk) File save/load only shows common file extensions by default. (choice 'all' in filter, different from '*.*')

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1083 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-10-21 01:52:07 +00:00
parent 9e68266ff8
commit 9ef0e6b74c
6 changed files with 134 additions and 98 deletions

View File

@@ -2764,7 +2764,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 (File_formats[Main_fileformat-1].Backup_done)
if (Get_fileformat(Main_fileformat)->Backup_done)
Main_comment[0]='\0';
Original_screen_X=0;
@@ -2828,7 +2828,7 @@ void Load_picture(byte image)
Cursor_shape=old_cursor_shape;
}
if ( (File_error==1) || (!File_formats[Main_fileformat-1].Backup_done) )
if ( (File_error==1) || (!Get_fileformat(Main_fileformat)->Backup_done) )
{
do_not_restore=0;
if (File_error!=1)
@@ -3097,7 +3097,7 @@ void Save_picture(byte image)
Hide_cursor();
Cursor_shape=old_cursor_shape;
if ((File_error==1) || (!File_formats[Main_fileformat-1].Backup_done))
if ((File_error==1) || (!Get_fileformat(Main_fileformat)->Backup_done))
do_not_restore=0;
Display_cursor();