diff options
| author | 2022-11-10 05:01:42 +0100 | |
|---|---|---|
| committer | 2022-11-10 05:01:42 +0100 | |
| commit | d13d72d56e542a920311cbd02a22948a7346c900 (patch) | |
| tree | 580282d78e091498fdbb8a84024c3fb0ff54bc6e | |
| parent | e1fb3c163f15cd9e2c4717ce0c8e0d69d7d4d6d6 (diff) | |
taito/tc0080vco.cpp: transmask split for upper color bank, fixes ainferno hud layer display
| -rw-r--r-- | src/mame/taito/tc0080vco.cpp | 13 |
1 files 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, |
