summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2015-07-27 16:25:21 +0200
committer Dirk Best <mail@dirk-best.de>2015-07-27 18:20:20 +0200
commit417a2489ef30d4a24544350ebc5ca487bef02f4b (patch)
tree38a5d005a4252980f0dfa67eeb03c2dea7890ba4
parent4ac77c8da314acc42e1660d6722fc167e9f9bf48 (diff)
4enraya: use standard 3-bit rgb palette
-rw-r--r--src/mame/drivers/4enraya.c3
-rw-r--r--src/mame/includes/4enraya.h1
-rw-r--r--src/mame/video/4enraya.c7
3 files changed, 1 insertions, 10 deletions
diff --git a/src/mame/drivers/4enraya.c b/src/mame/drivers/4enraya.c
index 5b44789b76c..5c874725aba 100644
--- a/src/mame/drivers/4enraya.c
+++ b/src/mame/drivers/4enraya.c
@@ -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")
diff --git a/src/mame/includes/4enraya.h b/src/mame/includes/4enraya.h
index 3f41a8afb69..11708ed9189 100644
--- a/src/mame/includes/4enraya.h
+++ b/src/mame/includes/4enraya.h
@@ -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();
diff --git a/src/mame/video/4enraya.c b/src/mame/video/4enraya.c
index 65fc283c37f..babbff1d8db 100644
--- a/src/mame/video/4enraya.c
+++ b/src/mame/video/4enraya.c
@@ -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);