mole: use standard 3-bit rbg palette
This commit is contained in:
parent
e17d40a250
commit
6a79228c3f
@ -83,7 +83,6 @@ public:
|
|||||||
virtual void machine_start();
|
virtual void machine_start();
|
||||||
virtual void machine_reset();
|
virtual void machine_reset();
|
||||||
virtual void video_start();
|
virtual void video_start();
|
||||||
DECLARE_PALETTE_INIT(mole);
|
|
||||||
UINT32 screen_update_mole(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
UINT32 screen_update_mole(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -94,12 +93,6 @@ public:
|
|||||||
*
|
*
|
||||||
*************************************/
|
*************************************/
|
||||||
|
|
||||||
PALETTE_INIT_MEMBER(mole_state, mole)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < 8; i++)
|
|
||||||
palette.set_pen_color(i, pal1bit(i >> 0), pal1bit(i >> 2), pal1bit(i >> 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
TILE_GET_INFO_MEMBER(mole_state::get_bg_tile_info)
|
TILE_GET_INFO_MEMBER(mole_state::get_bg_tile_info)
|
||||||
{
|
{
|
||||||
UINT16 code = m_tileram[tile_index];
|
UINT16 code = m_tileram[tile_index];
|
||||||
@ -340,8 +333,7 @@ static MACHINE_CONFIG_START( mole, mole_state )
|
|||||||
MCFG_SCREEN_PALETTE("palette")
|
MCFG_SCREEN_PALETTE("palette")
|
||||||
|
|
||||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", mole)
|
MCFG_GFXDECODE_ADD("gfxdecode", "palette", mole)
|
||||||
MCFG_PALETTE_ADD("palette", 8)
|
MCFG_PALETTE_ADD_3BIT_RBG("palette")
|
||||||
MCFG_PALETTE_INIT_OWNER(mole_state, mole)
|
|
||||||
|
|
||||||
/* sound hardware */
|
/* sound hardware */
|
||||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||||
|
Loading…
Reference in New Issue
Block a user