summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-03-20 10:37:32 -0400
committer GitHub <noreply@github.com>2019-03-20 10:37:32 -0400
commite7cfd6cf8b13b6739621f580d8ea1e94fb7f73ac (patch)
tree5a52495bfd5f0afc2bcfaa56048a68333b864421
parent7a0ce844f73e628a4e1d605d6b0ea41e85281e27 (diff)
parent207c8fc9e53ed1d7b26cd0d8e280ac24c7a8f001 (diff)
Merge pull request #4776 from cam900/cninja_colmask
cninja.cpp : Fix tilemap color mask behavior
-rw-r--r--src/mame/video/cninja.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/cninja.cpp b/src/mame/video/cninja.cpp
index aede19bd9c0..d6bc0fc72d6 100644
--- a/src/mame/video/cninja.cpp
+++ b/src/mame/video/cninja.cpp
@@ -208,14 +208,14 @@ uint32_t cninja_state::screen_update_robocop2(screen_device &screen, bitmap_ind1
/* One of the tilemap chips can switch between 2 tilemaps at 4bpp, or 1 at 8bpp */
if (priority & 4)
{
- m_deco_tilegen[0]->set_tilemap_colour_mask(2, 0);
- m_deco_tilegen[0]->set_tilemap_colour_mask(3, 0);
+ m_deco_tilegen[1]->set_tilemap_colour_mask(0, 0);
+ m_deco_tilegen[1]->set_tilemap_colour_mask(1, 0);
m_deco_tilegen[1]->pf12_set_gfxbank(0, 4);
}
else
{
- m_deco_tilegen[0]->set_tilemap_colour_mask(2, 0xf);
- m_deco_tilegen[0]->set_tilemap_colour_mask(3, 0xf);
+ m_deco_tilegen[1]->set_tilemap_colour_mask(0, 0xf);
+ m_deco_tilegen[1]->set_tilemap_colour_mask(1, 0xf);
m_deco_tilegen[1]->pf12_set_gfxbank(0, 2);
}