--- uae/src/include/drawing.h 2018/04/24 16:43:44 1.1.1.2 +++ uae/src/include/drawing.h 2018/04/24 16:45:11 1.1.1.3 @@ -15,7 +15,7 @@ * This doesn't work very well */ -/* #define EMULATE_AGA */ +#undef EMULATE_AGA #ifndef EMULATE_AGA #define AGA_CHIPSET 0 @@ -129,6 +129,9 @@ struct decision { #endif }; +/* Compute the number of bitplanes from a value written to BPLCON0 */ +#define GET_PLANES(x) ((((x) >> 12) & 7) | (((x) & 0x10) >> 1)) + /* Anything related to changes in hw registers during the DDF for one * line. */ struct draw_info { @@ -178,3 +181,23 @@ extern int thisframe_first_drawn_line, t extern uae_u16 clxdat, clxcon; extern int clx_sprmask; extern int diwfirstword,diwlastword; + +#define IHF_SCROLLLOCK 0 +#define IHF_QUIT_PROGRAM 1 +#define IHF_PICASSO 2 +#define IHF_SOUNDADJUST 3 + +extern int inhibit_frame; + +static __inline__ void set_inhibit_frame (int bit) +{ + inhibit_frame |= 1 << bit; +} +static __inline__ void clear_inhibit_frame (int bit) +{ + inhibit_frame &= ~(1 << bit); +} +static __inline__ void toggle_inhibit_frame (int bit) +{ + inhibit_frame ^= ~(1 << bit); +}