sidampkr: Make the cards appear

This commit is contained in:
AJR 2018-05-19 00:05:40 -04:00
parent 7ffa828e81
commit 7097bfd5f0

View File

@ -100,6 +100,7 @@ private:
TILE_GET_INFO_MEMBER(get_bg_tile_info);
TILE_GET_INFO_MEMBER(get_bg_tile_info_unkitpkr);
TILE_GET_INFO_MEMBER(get_bg_tile_info_sidampkr);
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_PALETTE_INIT(wallc);
@ -233,6 +234,11 @@ TILE_GET_INFO_MEMBER(wallc_state::get_bg_tile_info_unkitpkr)
SET_TILE_INFO_MEMBER(0, code, 1, 0);
}
TILE_GET_INFO_MEMBER(wallc_state::get_bg_tile_info_sidampkr)
{
SET_TILE_INFO_MEMBER(0, m_videoram[tile_index] | 0x100, 0, 0);
}
void wallc_state::video_start()
{
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(wallc_state::get_bg_tile_info), this), TILEMAP_SCAN_COLS_FLIP_Y, 8, 8, 32, 32);
@ -245,7 +251,7 @@ VIDEO_START_MEMBER(wallc_state, unkitpkr)
VIDEO_START_MEMBER(wallc_state, sidampkr)
{
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(wallc_state::get_bg_tile_info), this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(wallc_state::get_bg_tile_info_sidampkr), this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
}
uint32_t wallc_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)