5 // This allows you to get the palette, mess around with it
6 // (e.g. contrast/brightness)
7 // and then pass it back
8 int get_md_palette(unsigned char pal
[256],unsigned char *cram
)
11 if (pal
==NULL
) return 1;
15 b
=(cram
[c
*2+0]&0x0e)<<4;
17 r
=(cram
[c
*2+1]&0x0e)<<4;