konamiic.cpp: fix nBurnBpp != 32 for konami and metro
This commit is contained in:
parent
5800fe3270
commit
3f98a89b88
|
@ -16,7 +16,7 @@ UINT32 *konami_bitmap32 = NULL;
|
|||
UINT8 *konami_priority_bitmap = NULL;
|
||||
UINT32 *konami_palette32;
|
||||
|
||||
static UINT16 *konami_blendpal16;
|
||||
//static UINT16 *konami_blendpal16;
|
||||
|
||||
static INT32 highlight_mode = 0; // set in driver init.
|
||||
static INT32 highlight_over_sprites_mode = 0; // ""
|
||||
|
@ -241,6 +241,7 @@ void KonamiBlendCopy(UINT32 *pPalette)
|
|||
}
|
||||
break;
|
||||
|
||||
#if 0
|
||||
case 3:
|
||||
{
|
||||
UINT8 *dst = pBurnDraw;
|
||||
|
@ -261,14 +262,15 @@ void KonamiBlendCopy(UINT32 *pPalette)
|
|||
*dst += (*bmp / 8) & 0x1f;
|
||||
}
|
||||
|
||||
// for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
|
||||
// PutPix(pBurnDraw + (i * nBurnBpp), BurnHighCol((bmp[i]>>16)&0xff, (bmp[i]>>8)&0xff, bmp[i]&0xff, 0));
|
||||
// }
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
bprintf (0, _T("Unsupported KonamiBlendCopy bit depth! %d\n"), nBurnBpp);
|
||||
#endif
|
||||
default:
|
||||
for (INT32 i = 0; i < nScreenWidth * nScreenHeight; i++) {
|
||||
PutPix(pBurnDraw + (i * nBurnBpp), BurnHighCol((bmp[i]>>16)&0xff, (bmp[i]>>8)&0xff, bmp[i]&0xff, 0));
|
||||
}
|
||||
// bprintf (0, _T("Unsupported KonamiBlendCopy bit depth! %d\n"), nBurnBpp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue