--- uae/src/drawing.c 2018/04/24 16:43:30 1.1.1.2 +++ uae/src/drawing.c 2018/04/24 16:44:51 1.1.1.3 @@ -1878,7 +1878,7 @@ static __inline__ void do_color_changes static void pfield_expand_dp_bplcon (void) { bplhires = (dp_for_drawing->bplcon0 & 0x8000) == 0x8000; - bplplanecnt = (dp_for_drawing->bplcon0 & 0x7000) >> 12; + bplplanecnt = GET_PLANES (dp_for_drawing->bplcon0); bplham = (dp_for_drawing->bplcon0 & 0x800) == 0x800; #if AGA_CHIPSET == 1 /* The KILLEHB bit exists in ECS, but is apparently meant for Genlock * stuff, and it's set by some demos (e.g. Andromeda Seven Seas) */ @@ -2381,9 +2381,9 @@ static __inline__ void check_picasso (vo picasso_on = picasso_requested_on; if (!picasso_on) - clear_inhibit_frame (2); + clear_inhibit_frame (IHF_PICASSO); else - set_inhibit_frame (2); + set_inhibit_frame (IHF_PICASSO); gfx_set_picasso_state (picasso_on); picasso_enablescreen (picasso_requested_on); @@ -2411,7 +2411,7 @@ void vsync_handle_redraw (int long_frame if (quit_program < 0) { quit_program = -quit_program; - set_inhibit_frame (1); + set_inhibit_frame (IHF_QUIT_PROGRAM); regs.spcflags |= SPCFLAG_BRK; filesys_prepare_reset (); #ifdef SUPPORT_PENGUINS