diff options
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 |
commit | 64ac8f6776fc4451d756b0eb3bb6dbd22c49801a (patch) | |
tree | bb1d096fecec4684c8ab2b7be1b4d539ca06e57b /src/mame/drivers/astrocde.c | |
parent | f9d3fbaa73ccdab2e5fcf9fc095a14b4f24c3133 (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/astrocde.c')
-rw-r--r-- | src/mame/drivers/astrocde.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mame/drivers/astrocde.c b/src/mame/drivers/astrocde.c index 67a8876e78a..b9cce169924 100644 --- a/src/mame/drivers/astrocde.c +++ b/src/mame/drivers/astrocde.c @@ -1273,7 +1273,8 @@ static MACHINE_CONFIG_START( astrocade_base, astrocde_state ) /* each game has its own map */ /* video hardware */ - MCFG_PALETTE_LENGTH(512) + MCFG_PALETTE_ADD("palette", 512) + MCFG_PALETTE_INIT_OWNER(astrocde_state, astrocde) MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_RAW_PARAMS(ASTROCADE_CLOCK, 455, 0, 352, 262, 0, 240) @@ -1289,9 +1290,10 @@ static MACHINE_CONFIG_DERIVED( astrocade_16color_base, astrocade_base ) MCFG_NVRAM_ADD_0FILL("nvram") /* video hardware */ - MCFG_PALETTE_LENGTH(4096) + MCFG_DEVICE_REMOVE("palette") + MCFG_PALETTE_ADD("palette", 4096) - MCFG_PALETTE_INIT_OVERRIDE(astrocde_state,profpac) + MCFG_PALETTE_INIT_OWNER(astrocde_state,profpac) MCFG_VIDEO_START_OVERRIDE(astrocde_state,profpac) MCFG_SCREEN_MODIFY("screen") |