From d13d72d56e542a920311cbd02a22948a7346c900 Mon Sep 17 00:00:00 2001 From: angelosa Date: Thu, 10 Nov 2022 05:01:42 +0100 Subject: taito/tc0080vco.cpp: transmask split for upper color bank, fixes ainferno hud layer display --- src/mame/taito/tc0080vco.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/mame/taito/tc0080vco.cpp b/src/mame/taito/tc0080vco.cpp index 28c18d5ce30..cf3433e1b4a 100644 --- a/src/mame/taito/tc0080vco.cpp +++ b/src/mame/taito/tc0080vco.cpp @@ -146,9 +146,14 @@ void tc0080vco_device::device_start() m_tilemap[0] = &machine().tilemap().create(*this, tilemap_get_info_delegate(*this, FUNC(tc0080vco_device::get_bg0_tile_info)), TILEMAP_SCAN_ROWS, 16, 16, 64, 64); m_tilemap[1] = &machine().tilemap().create(*this, tilemap_get_info_delegate(*this, FUNC(tc0080vco_device::get_bg1_tile_info)), TILEMAP_SCAN_ROWS, 16, 16, 64, 64); - m_tilemap[0]->set_transparent_pen(0); - m_tilemap[1]->set_transparent_pen(0); +// m_tilemap[0]->set_transparent_pen(0); +// m_tilemap[1]->set_transparent_pen(0); + + m_tilemap[0]->set_transmask(0, 0x0001, 0xfffe); + m_tilemap[0]->set_transmask(1, 0x8001, 0x7ffe); + m_tilemap[1]->set_transmask(0, 0x0001, 0xfffe); + m_tilemap[1]->set_transmask(1, 0x8001, 0x7ffe); m_tilemap[0]->set_scrolldx(m_bg_xoffs, 512); m_tilemap[1]->set_scrolldx(m_bg_xoffs, 512); m_tilemap[0]->set_scrolldy(m_bg_yoffs, m_bg_flip_yoffs); @@ -325,7 +330,7 @@ TILE_GET_INFO_MEMBER(tc0080vco_device::get_bg0_tile_info) color = m_bg0_ram_1[tile_index] & 0x001f; tile = m_bg0_ram_0[tile_index] & 0x7fff; - tileinfo.category = 0; + tileinfo.group = color >> 4; tileinfo.set(0, tile, @@ -340,7 +345,7 @@ TILE_GET_INFO_MEMBER(tc0080vco_device::get_bg1_tile_info) color = m_bg1_ram_1[tile_index] & 0x001f; tile = m_bg1_ram_0[tile_index] & 0x7fff; - tileinfo.category = 0; + tileinfo.group = color >> 4; tileinfo.set(0, tile, -- cgit v1.2.3