Core/burn/drv/konami/konamiic.cpp
// xbbbbbgggggrrrrr (used mostly by Konami-custom cpu games)
xbbbbbgggggrrrrr (used mostly by Konami-custom cpu games)
xbbbbbgggggrrrrr ( used mostly by Konami - custom cpu games )
void KonamiRecalcPal(UINT8 *src, UINT32 *dst, INT32 len)
{
	UINT8 r,g,b;
	UINT16 *p = (UINT16*)src;
	for (INT32 i = 0; i < len / 2; i++) {
		UINT16 d = BURN_ENDIAN_SWAP_INT16((p[i] << 8) | (p[i] >> 8));
		b = (d >> 10) & 0x1f;
		g = (d >>  5) & 0x1f;
		r = (d >>  0) & 0x1f;
		r = (r << 3) | (r >> 2);
		g = (g << 3) | (g >> 2);
		b = (b << 3) | (b >> 2);
		dst[i] = BurnHighCol(r, g, b, 0);
	}
}
void KonamiRecalcPal ( UINT8 * src , UINT32 * dst , INT32 len ) { UINT8 r , g , b ; UINT16 * p = ( UINT16 * ) src ; for ( INT32 i = 0 ; i < len / 2 ; i ++ ) { UINT16 d = BURN_ENDIAN_SWAP_INT16 ( ( p [ i ] << 8 ) | ( p [ i ] >> 8 ) ) ; b = ( d >> 10 ) & 0x1f ; g = ( d >> 5 ) & 0x1f ; r = ( d >> 0 ) & 0x1f ; r = ( r << 3 ) | ( r >> 2 ) ; g = ( g << 3 ) | ( g >> 2 ) ; b = ( b << 3 ) | ( b >> 2 ) ; dst [ i ] = BurnHighCol ( r , g , b , 0 ) ; } }
xbbbbbgggggrrrrr (used mostly by Konami-custom cpu games)
xbbbbbgggggrrrrr ( used mostly by Konami - custom cpu games )