|
|
| version 1.6, 2004/08/07 12:10:27 | version 1.7, 2004/08/08 06:59:22 |
|---|---|
| Line 67 void pal_makegrad(RGB32 *pal, int pals, | Line 67 void pal_makegrad(RGB32 *pal, int pals, |
| } | } |
| } | } |
| void pals_cnv16pal(RGB16 *dst, const RGB32 *src, UINT pals) { | |
| while(pals--) { | |
| *dst++ = scrnmng_makepal16(*src++); | |
| } | |
| } | |
| // ---- | // ---- |
| Line 333 void pal_update(void) { | Line 326 void pal_update(void) { |
| } | } |
| #if defined(SUPPORT_16BPP) | #if defined(SUPPORT_16BPP) |
| if (scrnmng_getbpp() == 16) { | if (scrnmng_getbpp() == 16) { |
| pals_cnv16pal(x1n_pal16, x1n_pal32, xm_palettes); | int i; |
| for (i=0; i<xm_palettes; i++) { | |
| x1n_pal16[i] = scrnmng_makepal16(x1n_pal32[i]); | |
| } | |
| } | } |
| #endif | #endif |
| scrndraw_changepalette(); | scrndraw_changepalette(); |