EGX mode for CPC
In this custom mode, odd lines use MODE 0 (wide pixels, 16 colors), and even lines use MODE 1 (square pixels, 4 colors). - Add a settings window to the 8-bit effect where you can chose what you want to draw - Add the customizations required to make it work in graph.c - Tweak some other places so it is easier to add other modes later on. - Groundwork for some more modes: EGX2, ZX spectrum, Game Boy color.
This commit is contained in:
@@ -506,9 +506,8 @@ void Button_Toggle_toolbar(void)
|
||||
|
||||
Window_dropdown_add_item(&dropdown, 0, menu_name_tools);
|
||||
|
||||
if (Main_backups->Pages->Image_mode == IMAGE_MODE_LAYERED ||
|
||||
Main_backups->Pages->Image_mode == IMAGE_MODE_MODE5 ||
|
||||
(Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION && Main_backups->Pages->Nb_layers==1))
|
||||
if (Main_backups->Pages->Image_mode != IMAGE_MODE_ANIMATION ||
|
||||
Main_backups->Pages->Nb_layers==1)
|
||||
Window_dropdown_add_item(&dropdown, 1, menu_name_layers);
|
||||
|
||||
if (Main_backups->Pages->Image_mode == IMAGE_MODE_ANIMATION ||
|
||||
@@ -544,7 +543,7 @@ void Button_Toggle_toolbar(void)
|
||||
}
|
||||
Set_bar_visibility(MENUBAR_ANIMATION, !Menu_bars[MENUBAR_ANIMATION].Visible, 0);
|
||||
|
||||
if (Main_backups->Pages->Image_mode == IMAGE_MODE_LAYERED)
|
||||
if (Main_backups->Pages->Image_mode != IMAGE_MODE_ANIMATION)
|
||||
Switch_layer_mode(IMAGE_MODE_ANIMATION);
|
||||
|
||||
break;
|
||||
@@ -4860,10 +4859,10 @@ void Button_Effects(void)
|
||||
Display_effect_state(C2,L4, "8 bit" ,Main_backups->Pages->Image_mode > IMAGE_MODE_ANIMATION);
|
||||
Display_cursor();
|
||||
} else {
|
||||
//Close_window();
|
||||
//Display_cursor();
|
||||
// Contraint checker/enforcer menu
|
||||
//clicked_button = 11;
|
||||
Close_window();
|
||||
Display_cursor();
|
||||
Button_Constraint_menu();
|
||||
clicked_button = 11;
|
||||
}
|
||||
break;
|
||||
case 15: // Tilemap
|
||||
|
||||
Reference in New Issue
Block a user