From 192a45db27dceacb40525d63611dff43b8af3dc4 Mon Sep 17 00:00:00 2001 From: iq_132 <1191709+iq132@users.noreply.github.com> Date: Thu, 5 Feb 2015 23:50:11 +0000 Subject: [PATCH] Fix sprite transparencies in Labyrinth Runner --- src/burn/drv/konami/d_labyrunr.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/burn/drv/konami/d_labyrunr.cpp b/src/burn/drv/konami/d_labyrunr.cpp index 49b1f2b2e..0c56ed45e 100644 --- a/src/burn/drv/konami/d_labyrunr.cpp +++ b/src/burn/drv/konami/d_labyrunr.cpp @@ -363,6 +363,7 @@ static void DrvGfxExpand(UINT8 *src, INT32 len) static void DrvExpandLookupTable() { + // Calculate color lookup tables for (INT32 pal = 0; pal < 8; pal+=2) { for (INT32 i = 0; i < 0x100; i++) @@ -371,6 +372,11 @@ static void DrvExpandLookupTable() DrvLookUpTable[((pal+0) << 8) | i] = ((DrvLutPROM[i] == 0) ? 0 : ((pal << 4) | (DrvLutPROM[i] & 0x0f))); } } + + // Calculate sprite transparency lookups + for (INT32 i = 0; i < 0x800; i++) { + DrvSprTranspLut[i] = DrvLookUpTable[i] & 0xf; + } } static INT32 CommonInit(INT32 nLoadType) @@ -672,11 +678,6 @@ static void DrvPaletteInit() for (INT32 i = 0; i < 0x800; i++) { DrvPalette[i] = pens[DrvLookUpTable[i]]; - - if (DrvPalette[i]) - DrvSprTranspLut[i] = 1; - else - DrvSprTranspLut[i] = 0; } DrvPalette[0x800] = BurnHighCol(0,0,0,0); // black