4enraya: use standard 3-bit rgb palette

This commit is contained in:
Dirk Best 2015-07-27 16:25:21 +02:00
parent 4ac77c8da3
commit 417a2489ef
3 changed files with 1 additions and 10 deletions

View File

@ -442,8 +442,7 @@ static MACHINE_CONFIG_START( 4enraya, _4enraya_state )
MCFG_GFXDECODE_ADD("gfxdecode", "palette", 4enraya)
MCFG_PALETTE_ADD("palette", 8)
MCFG_PALETTE_INIT_OWNER(_4enraya_state, _4enraya)
MCFG_PALETTE_ADD_3BIT_RGB("palette")
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")

View File

@ -44,7 +44,6 @@ public:
DECLARE_WRITE8_MEMBER(sound_control_w);
DECLARE_DRIVER_INIT(unkpacg);
TILE_GET_INFO_MEMBER(get_tile_info);
DECLARE_PALETTE_INIT(_4enraya);
UINT32 screen_update_4enraya(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
virtual void machine_start();

View File

@ -18,13 +18,6 @@ WRITE8_MEMBER(_4enraya_state::fenraya_videoram_w)
m_bg_tilemap->mark_tile_dirty(offset & 0x3ff);
}
PALETTE_INIT_MEMBER(_4enraya_state, _4enraya)
{
/* RGB format */
for (int i = 0; i < 8; i++)
m_palette->set_pen_color(i, rgb_t(pal1bit(i >> 0),pal1bit(i >> 1),pal1bit(i >> 2)));
}
TILE_GET_INFO_MEMBER(_4enraya_state::get_tile_info)
{
int code = m_videoram[tile_index * 2] + (m_videoram[tile_index * 2 + 1] << 8);