summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/px4.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-02-27 13:35:15 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-02-27 13:35:15 +0000
commit64ac8f6776fc4451d756b0eb3bb6dbd22c49801a (patch)
treebb1d096fecec4684c8ab2b7be1b4d539ca06e57b /src/mess/drivers/px4.c
parentf9d3fbaa73ccdab2e5fcf9fc095a14b4f24c3133 (diff)
Huge update, palette is now device (nw)
note: Aaron please give more descriptive text for release log I have no more strength :)
Diffstat (limited to 'src/mess/drivers/px4.c')
-rw-r--r--src/mess/drivers/px4.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mess/drivers/px4.c b/src/mess/drivers/px4.c
index 8d2fc20dbc6..b19f008687c 100644
--- a/src/mess/drivers/px4.c
+++ b/src/mess/drivers/px4.c
@@ -201,7 +201,7 @@ public:
DECLARE_DRIVER_INIT(px4);
DECLARE_DRIVER_INIT(px4p);
virtual void machine_reset();
- virtual void palette_init();
+ DECLARE_PALETTE_INIT(px4);
DECLARE_MACHINE_START(px4_ramdisk);
DECLARE_PALETTE_INIT(px4p);
UINT32 screen_update_px4(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
@@ -1342,16 +1342,16 @@ INPUT_PORTS_END
// PALETTE
//**************************************************************************
-void px4_state::palette_init()
+PALETTE_INIT_MEMBER(px4_state, px4)
{
- 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));
}
PALETTE_INIT_MEMBER(px4_state, px4p)
{
- palette_set_color(machine(), 0, rgb_t(149, 157, 130));
- palette_set_color(machine(), 1, rgb_t(92, 83, 88));
+ palette.set_pen_color(0, rgb_t(149, 157, 130));
+ palette.set_pen_color(1, rgb_t(92, 83, 88));
}
@@ -1383,7 +1383,8 @@ static MACHINE_CONFIG_START( px4, px4_state )
MCFG_DEFAULT_LAYOUT(layout_px4)
- MCFG_PALETTE_LENGTH(2)
+ MCFG_PALETTE_ADD("palette", 2)
+ MCFG_PALETTE_INIT_OWNER(px4_state, px4)
// sound hardware
MCFG_SPEAKER_STANDARD_MONO("mono")
@@ -1442,7 +1443,8 @@ static MACHINE_CONFIG_DERIVED( px4p, px4 )
MCFG_MACHINE_START_OVERRIDE(px4_state, px4_ramdisk)
MCFG_NVRAM_ADD_0FILL("nvram")
- MCFG_PALETTE_INIT_OVERRIDE(px4_state, px4p)
+ MCFG_PALETTE_MODIFY("palette")
+ MCFG_PALETTE_INIT_OWNER(px4_state, px4p)
MCFG_CARTSLOT_ADD("ramdisk")
MCFG_CARTSLOT_NOT_MANDATORY