diff options
Diffstat (limited to 'src/mame/video/holeland.cpp')
-rw-r--r-- | src/mame/video/holeland.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mame/video/holeland.cpp b/src/mame/video/holeland.cpp index 599b89a8262..bff53ad15e8 100644 --- a/src/mame/video/holeland.cpp +++ b/src/mame/video/holeland.cpp @@ -62,7 +62,6 @@ VIDEO_START_MEMBER(holeland_state,holeland) m_bg_tilemap->set_transmask(0, 0xff, 0x00); /* split type 0 is totally transparent in front half */ m_bg_tilemap->set_transmask(1, 0x01, 0xfe); /* split type 1 has pen 0? transparent in front half */ - save_item(NAME(m_po)); save_item(NAME(m_palette_offset)); } @@ -70,7 +69,6 @@ VIDEO_START_MEMBER(holeland_state,crzrally) { m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(holeland_state::crzrally_get_tile_info),this), TILEMAP_SCAN_COLS, 8, 8, 32, 32); - save_item(NAME(m_po)); save_item(NAME(m_palette_offset)); } @@ -88,10 +86,9 @@ WRITE8_MEMBER(holeland_state::colorram_w) WRITE8_MEMBER(holeland_state::pal_offs_w) { - if ((data & 1) != m_po[offset]) + if ((m_palette_offset >> 4) != (data & 3)) { - m_po[offset] = data & 1; - m_palette_offset = (m_po[0] + (m_po[1] << 1)) << 4; + m_palette_offset = (data & 3) << 4; machine().tilemap().mark_all_dirty(); } } @@ -101,12 +98,14 @@ WRITE8_MEMBER(holeland_state::scroll_w) m_bg_tilemap->set_scrollx(0, data); } -WRITE8_MEMBER(holeland_state::flipscreen_w) +WRITE_LINE_MEMBER(holeland_state::flipscreen_x_w) { - if (offset) - flip_screen_y_set(data); - else - flip_screen_x_set(data); + flip_screen_x_set(state); +} + +WRITE_LINE_MEMBER(holeland_state::flipscreen_y_w) +{ + flip_screen_y_set(state); } |