summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wink.cpp')
-rw-r--r--src/mame/drivers/wink.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/wink.cpp b/src/mame/drivers/wink.cpp
index 8a1bca08a64..91ada6938e2 100644
--- a/src/mame/drivers/wink.cpp
+++ b/src/mame/drivers/wink.cpp
@@ -26,12 +26,13 @@
class wink_state : public driver_device
{
public:
- wink_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
+ wink_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_gfxdecode(*this, "gfxdecode"),
- m_videoram(*this, "videoram") { }
+ m_videoram(*this, "videoram")
+ { }
void wink(machine_config &config);
@@ -415,10 +416,8 @@ MACHINE_CONFIG_START(wink_state::wink)
MCFG_SCREEN_PALETTE("palette")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, wink_state, nmi_clock_w))
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_wink)
- MCFG_PALETTE_ADD("palette", 16)
- MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG)
-
+ GFXDECODE(config, m_gfxdecode, "palette", gfx_wink);
+ PALETTE(config, "palette").set_format(palette_device::xBRG_444, 16);
/* sound hardware */
SPEAKER(config, "mono").front_center();