Automatically set Drawing mode when loading Thomson, C64 and Apple 2 files

This commit is contained in:
Thomas Bernard
2018-12-10 22:47:49 +01:00
parent 2a6f0e3a27
commit c81ffb0d6e
3 changed files with 17 additions and 1 deletions

View File

@@ -317,7 +317,12 @@ void Set_image_mode(T_IO_Context *context, enum IMAGE_MODES mode)
if (context->Type == CONTEXT_MAIN_IMAGE)
{
Main.backups->Pages->Image_mode = mode;
//Switch_layer_mode(mode);
Update_screen_targets();
if (mode > IMAGE_MODE_ANIMATION)
Selected_Constraint_Mode = mode;
// update the "FX" button state
Draw_menu_button(BUTTON_EFFECTS,Any_effect_active());
}
}