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_analog[256*3]; /* G R B    0x0..0xF */
00013 extern uint8_t                  pc98_pal_digital[8];    /* G R B    0x0..0x7 */
00014 
00015 /* 4-bit to 6-bit expansion */
00016 static inline unsigned char dac_4to6(unsigned char c4) {
00017     /* a b c d . .
00018      *
00019      * becomes
00020      *
00021      * a b c d a b */
00022     return (c4 << 2) | (c4 >> 2);
00023 }
00024