Core/burn/drv/konami/konamiic.cpp
/*
	Transfer and blend pixels

	* highlights are right? where is this used?
	* also, has a limitation of 0x4000 colors, some games may need more.
*/
Transfer and blend pixels
highlights are right. where is this used.
also, has a limitation of 0x4000 colors, some games may need more.
Transfer and blend pixels highlights are right . where is this used . also has a limitation of 0x4000 colors some games may need more .
void KonamiBlendCopy(UINT32 *palette , UINT32 *drvpalette )
{
	UINT8 *dst = pBurnDraw;
	for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++)
	{
		if (pTransDraw[i] >= 0x4000)		
		{
			UINT32 source = palette[pTransDraw[i] & 0x3fff];
			UINT32 blend = palette[konami_temp_screen[i] & 0x3fff];
			INT32 a = 0x99; 
			if (pTransDraw[i] & 0x4000) a = 0xa9; 
			INT32 ad = 256 - a;
			UINT32 p = ((((source & 0x0000ff) * a + (blend & 0x0000ff) * ad) >> 8)) |
		  			 ((((source & 0x00ff00) * a + (blend & 0x00ff00) * ad) >> 8) & 0x00ff00) |
		  			 ((((source & 0xff0000) * a + (blend & 0xff0000) * ad) >> 8) & 0xff0000);
			PutPix(dst, BurnHighCol(p >> 16, p >> 8, p, 0));
		}
		else		
		{
			PutPix(dst, drvpalette[pTransDraw[i]]);
		}
		dst += nBurnBpp;
	}
}
void KonamiBlendCopy ( UINT32 * palette , UINT32 * drvpalette ) { UINT8 * dst = pBurnDraw ; for ( INT32 i = 0 ; i < nScreenWidth * nScreenHeight ; i ++ ) { if ( pTransDraw [ i ] >= 0x4000 ) { UINT32 source = palette [ pTransDraw [ i ] & 0x3fff ] ; UINT32 blend = palette [ konami_temp_screen [ i ] & 0x3fff ] ; INT32 a = 0x99 ; if ( pTransDraw [ i ] & 0x4000 ) a = 0xa9 ; INT32 ad = 256 - a ; UINT32 p = ( ( ( ( source & 0x0000ff ) * a + ( blend & 0x0000ff ) * ad ) >> 8 ) ) | ( ( ( ( source & 0x00ff00 ) * a + ( blend & 0x00ff00 ) * ad ) >> 8 ) & 0x00ff00 ) | ( ( ( ( source & 0xff0000 ) * a + ( blend & 0xff0000 ) * ad ) >> 8 ) & 0xff0000 ) ; PutPix ( dst , BurnHighCol ( p >> 16 , p >> 8 , p , 0 ) ) ; } else { PutPix ( dst , drvpalette [ pTransDraw [ i ] ] ) ; } dst += nBurnBpp ; } }
Transfer and blend pixels
 highlights are right?
Transfer and blend pixels highlights are right?
/* 32-bit color */ /* n-bit color */ // shadow & highlight // shadow (255 * 0.60) // highlight (255 * (1 / 0.60)) & 0xff; (0x1a9 otherwise) right? // ripped from MAME... // normal