summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2015-07-29 18:59:18 +0200
committer Dirk Best <mail@dirk-best.de>2015-07-29 21:57:24 +0200
commit5d250abce13ef6940155afc15ca977dd8d417471 (patch)
treebce42ab5902e9d1c8333324f4a46512602d2e774
parent2108ec8a3f79774f6a4a55bcdace5eb327418609 (diff)
pv1000: use standard 3-bit bgr palette
-rw-r--r--src/mess/drivers/pv1000.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mess/drivers/pv1000.c b/src/mess/drivers/pv1000.c
index 643fab3199d..7ba26775c81 100644
--- a/src/mess/drivers/pv1000.c
+++ b/src/mess/drivers/pv1000.c
@@ -175,7 +175,6 @@ public:
required_shared_ptr<UINT8> m_p_videoram;
virtual void machine_start();
virtual void machine_reset();
- DECLARE_PALETTE_INIT(pv1000);
UINT32 screen_update_pv1000(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
TIMER_CALLBACK_MEMBER(d65010_irq_on_cb);
TIMER_CALLBACK_MEMBER(d65010_irq_off_cb);
@@ -304,13 +303,6 @@ static INPUT_PORTS_START( pv1000 )
INPUT_PORTS_END
-PALETTE_INIT_MEMBER(pv1000_state, pv1000)
-{
- for (int i = 0; i < 8; i++)
- palette.set_pen_color(i, pal1bit(i >> 2), pal1bit(i >> 1), pal1bit(i >> 0));
-}
-
-
DEVICE_IMAGE_LOAD_MEMBER( pv1000_state, pv1000_cart )
{
UINT32 size = m_cart->common_get_size("rom");
@@ -462,8 +454,7 @@ static MACHINE_CONFIG_START( pv1000, pv1000_state )
MCFG_SCREEN_UPDATE_DRIVER(pv1000_state, screen_update_pv1000)
MCFG_SCREEN_PALETTE("palette")
- MCFG_PALETTE_ADD( "palette", 8 )
- MCFG_PALETTE_INIT_OWNER(pv1000_state, pv1000)
+ MCFG_PALETTE_ADD_3BIT_BGR("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", pv1000 )