Saving as palette format no longer shows warning about lyaer/anim support. Loading a single file in command-line makes the spare use the same mode (layer/anim), so that the menus don't move when you switch

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1951 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-05-08 18:55:17 +00:00
parent 2afad0b550
commit 93c4832138
2 changed files with 6 additions and 1 deletions

View File

@@ -868,6 +868,10 @@ int Init_program(int argc,char * argv[])
Destroy_context(&context);
Redraw_layered_image();
End_of_modification();
// If only one image was loaded, assume the spare has same image type
if (file_in_command_line==1)
Spare_backups->Pages->Image_mode = Main_backups->Pages->Image_mode;
Hide_cursor();
Compute_optimal_menu_colors(Main_palette);