DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
include/pc98_dac.h
00001 
00002 void pc98_update_palette(void);
00003 void pc98_update_digpal(unsigned char ent);
00004 void pc98_set_digpal_entry(unsigned char ent,unsigned char grb);
00005 void pc98_set_digpal_pair(unsigned char start,unsigned char pair);
00006 unsigned char pc98_get_digpal_pair(unsigned char start);
00007 void VGA_DAC_UpdateColor( Bitu index );
00008 
00009 extern uint32_t                 pc98_text_palette[8];
00010 extern uint8_t                  pc98_16col_analog_rgb_palette_index;
00011 
00012 extern uint8_t                  pc98_pal_vga[256*3];    /* G R B    0x0..0xFF */
00013 extern uint8_t                  pc98_pal_analog[256*3]; /* G R B    0x0..0xF */
00014 extern uint8_t                  pc98_pal_digital[8];    /* G R B    0x0..0x7 */
00015 
00016 /* 4-bit to 6-bit expansion */
00017 static inline unsigned char dac_4to6(unsigned char c4) {
00018     /* a b c d . .
00019      *
00020      * becomes
00021      *
00022      * a b c d a b */
00023     return (c4 << 2) | (c4 >> 2);
00024 }
00025