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:
parent
2afad0b550
commit
93c4832138
@ -969,7 +969,8 @@ void Save_image(T_IO_Context *context)
|
|||||||
{
|
{
|
||||||
case CONTEXT_MAIN_IMAGE:
|
case CONTEXT_MAIN_IMAGE:
|
||||||
if (!File_formats[context->Format-1].Supports_layers
|
if (!File_formats[context->Format-1].Supports_layers
|
||||||
&& Main_backups->Pages->Nb_layers > 1)
|
&& Main_backups->Pages->Nb_layers > 1
|
||||||
|
&& !File_formats[context->Format-1].Palette_only)
|
||||||
{
|
{
|
||||||
if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
|
if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -869,6 +869,10 @@ int Init_program(int argc,char * argv[])
|
|||||||
Redraw_layered_image();
|
Redraw_layered_image();
|
||||||
End_of_modification();
|
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();
|
Hide_cursor();
|
||||||
Compute_optimal_menu_colors(Main_palette);
|
Compute_optimal_menu_colors(Main_palette);
|
||||||
Check_menu_mode();
|
Check_menu_mode();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user