|
|
| version 1.5, 2004/08/07 07:19:56 | 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 229 static void pal4096to64(RGB32 *pal, cons | Line 222 static void pal4096to64(RGB32 *pal, cons |
| } while(--r); | } while(--r); |
| } | } |
| void palettes(void) { | void pal_update(void) { |
| int i, j; | int i, j; |
| BYTE bit; | BYTE bit; |
| Line 331 void palettes(void) { | Line 324 void palettes(void) { |
| } | } |
| xm_palettes = 64+8; | xm_palettes = 64+8; |
| } | } |
| #if defined(SUPPORT_16BPP) | |
| if (scrnmng_getbpp() == 16) { | |
| int i; | |
| for (i=0; i<xm_palettes; i++) { | |
| x1n_pal16[i] = scrnmng_makepal16(x1n_pal32[i]); | |
| } | |
| } | |
| #endif | |
| scrndraw_changepalette(); | scrndraw_changepalette(); |
| } | } |
| // ---- | // ---- |
| void reflesh_palette(void) { | void pal_reset(void) { |
| REG8 i; | REG8 i; |
| REG8 j; | REG8 j; |