summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/pc1500.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/pc1500.c')
-rw-r--r--src/mess/drivers/pc1500.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mess/drivers/pc1500.c b/src/mess/drivers/pc1500.c
index 819e8ead110..8c84a58ef1a 100644
--- a/src/mess/drivers/pc1500.c
+++ b/src/mess/drivers/pc1500.c
@@ -43,7 +43,7 @@ public:
DECLARE_WRITE8_MEMBER( port_c_w );
DECLARE_READ8_MEMBER( pc1500_kb_r );
- virtual void palette_init();
+ DECLARE_PALETTE_INIT(pc1500);
};
static ADDRESS_MAP_START( pc1500_mem , AS_PROGRAM, 8, pc1500_state)
@@ -258,10 +258,10 @@ READ8_MEMBER( pc1500_state::port_a_r )
return 0xff;
}
-void pc1500_state::palette_init()
+PALETTE_INIT_MEMBER(pc1500_state, pc1500)
{
- palette_set_color(machine(), 0, rgb_t(138, 146, 148));
- palette_set_color(machine(), 1, rgb_t(92, 83, 88));
+ palette.set_pen_color(0, rgb_t(138, 146, 148));
+ palette.set_pen_color(1, rgb_t(92, 83, 88));
}
static const lh5810_interface lh5810_pc1500_config =
@@ -287,7 +287,8 @@ static MACHINE_CONFIG_START( pc1500, pc1500_state )
MCFG_SCREEN_SIZE(156, 8)
MCFG_SCREEN_VISIBLE_AREA(0, 156-1, 0, 7-1)
MCFG_DEFAULT_LAYOUT(layout_pc1500)
- MCFG_PALETTE_LENGTH(2)
+ MCFG_PALETTE_ADD("palette", 2)
+ MCFG_PALETTE_INIT_OWNER(pc1500_state, pc1500)
MCFG_LH5810_ADD("lh5810", lh5810_pc1500_config)