summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/zwackery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/zwackery.cpp')
-rw-r--r--src/mame/drivers/zwackery.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/drivers/zwackery.cpp b/src/mame/drivers/zwackery.cpp
index 75d7ba90d70..3f3a2923cd7 100644
--- a/src/mame/drivers/zwackery.cpp
+++ b/src/mame/drivers/zwackery.cpp
@@ -37,8 +37,8 @@
class zwackery_state : public driver_device
{
public:
- zwackery_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ zwackery_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_pia0(*this, "pia0"),
m_pia1(*this, "pia1"),
@@ -533,10 +533,8 @@ void zwackery_state::zwackery(machine_config &config)
m_screen->set_palette(m_palette);
m_screen->scanline().set(FUNC(zwackery_state::scanline_cb));
- GFXDECODE(config, "gfxdecode", "palette", gfx_zwackery);
-
- PALETTE(config, m_palette, 4096);
- m_palette->set_format(PALETTE_FORMAT_xRRRRRBBBBBGGGGG_inverted);
+ GFXDECODE(config, m_gfxdecode, "palette", gfx_zwackery);
+ PALETTE(config, "palette").set_format(palette_device::xRBG_555_inverted, 4096);
// sound hardware
SPEAKER(config, "speaker").front_center();