summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/egghunt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/egghunt.cpp')
-rw-r--r--src/mame/drivers/egghunt.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/egghunt.cpp b/src/mame/drivers/egghunt.cpp
index 4fb42efedb0..41f67502fcb 100644
--- a/src/mame/drivers/egghunt.cpp
+++ b/src/mame/drivers/egghunt.cpp
@@ -54,15 +54,16 @@ I dumped it with this configuration. In case I'll redump it desoldering pin 16 f
class egghunt_state : public driver_device
{
public:
- egghunt_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ egghunt_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_audiocpu(*this, "audiocpu"),
m_atram(*this, "atram"),
m_maincpu(*this, "maincpu"),
m_oki(*this, "oki"),
m_gfxdecode(*this, "gfxdecode"),
m_palette(*this, "palette"),
- m_soundlatch(*this, "soundlatch") { }
+ m_soundlatch(*this, "soundlatch")
+ { }
void egghunt(machine_config &config);
@@ -446,12 +447,11 @@ MACHINE_CONFIG_START(egghunt_state::egghunt)
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(8*8, 56*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(egghunt_state, screen_update_egghunt)
- MCFG_SCREEN_PALETTE("palette")
+ MCFG_SCREEN_PALETTE(m_palette)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_egghunt)
- MCFG_PALETTE_ADD("palette", 0x400)
- MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
+ PALETTE(config, m_palette).set_format(palette_device::xRGB_555, 0x400);
/* sound hardware */
SPEAKER(config, "mono").front_center();