summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2015-07-30 13:08:01 +0200
committer Dirk Best <mail@dirk-best.de>2015-07-30 14:18:44 +0200
commit6a79228c3f48179507671100f45b42660d7943b3 (patch)
treeded83377efac63d613dc2f737a206a60e3ad80a2
parente17d40a250fdac8f6913e543cd42bd4e8551c74f (diff)
mole: use standard 3-bit rbg palette
-rw-r--r--src/mame/drivers/mole.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mame/drivers/mole.c b/src/mame/drivers/mole.c
index 0ce7e6a9e69..b86dbc3b10c 100644
--- a/src/mame/drivers/mole.c
+++ b/src/mame/drivers/mole.c
@@ -83,7 +83,6 @@ public:
virtual void machine_start();
virtual void machine_reset();
virtual void video_start();
- DECLARE_PALETTE_INIT(mole);
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)
{
UINT16 code = m_tileram[tile_index];
@@ -340,8 +333,7 @@ static MACHINE_CONFIG_START( mole, mole_state )
MCFG_SCREEN_PALETTE("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", mole)
- MCFG_PALETTE_ADD("palette", 8)
- MCFG_PALETTE_INIT_OWNER(mole_state, mole)
+ MCFG_PALETTE_ADD_3BIT_RBG("palette")
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")