summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taxidriv.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/mame/drivers/taxidriv.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/mame/drivers/taxidriv.c')
-rw-r--r--src/mame/drivers/taxidriv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/taxidriv.c b/src/mame/drivers/taxidriv.c
index 78d22e51680..65f5c004d0d 100644
--- a/src/mame/drivers/taxidriv.c
+++ b/src/mame/drivers/taxidriv.c
@@ -362,7 +362,7 @@ static const ay8910_interface ay8910_interface_2 =
DEVCB_NULL
};
-void taxidriv_state::palette_init()
+PALETTE_INIT_MEMBER(taxidriv_state, taxidriv)
{
const UINT8 *color_prom = memregion("proms")->base();
int bit0, bit1, r, g, b;
@@ -382,7 +382,7 @@ void taxidriv_state::palette_init()
bit1 = (color_prom[0] >> 5) & 0x01;
b = 0x55 * bit0 + 0xaa * bit1;
- palette_set_color(machine(), i, rgb_t(r, g, b));
+ palette.set_pen_color(i, rgb_t(r, g, b));
color_prom++;
}
}
@@ -421,7 +421,8 @@ static MACHINE_CONFIG_START( taxidriv, taxidriv_state )
MCFG_SCREEN_UPDATE_DRIVER(taxidriv_state, screen_update_taxidriv)
MCFG_GFXDECODE_ADD("gfxdecode", taxidriv)
- MCFG_PALETTE_LENGTH(16)
+ MCFG_PALETTE_ADD("palette", 16)
+ MCFG_PALETTE_INIT_OWNER(taxidriv_state, taxidriv)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")