diff options
Diffstat (limited to 'src/mame/drivers/goodejan.cpp')
-rw-r--r-- | src/mame/drivers/goodejan.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/goodejan.cpp b/src/mame/drivers/goodejan.cpp index 693c009b0ac..f9e8576cb28 100644 --- a/src/mame/drivers/goodejan.cpp +++ b/src/mame/drivers/goodejan.cpp @@ -85,8 +85,8 @@ Secret menu hack [totmejan only] (I couldn't find official way to enter, so it's class goodejan_state : public driver_device, protected seibu_sound_common { public: - goodejan_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + goodejan_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_gfxdecode(*this, "gfxdecode"), m_palette(*this, "palette"), @@ -95,7 +95,8 @@ public: m_sc1_vram(*this, "sc1_vram"), m_sc2_vram(*this, "sc2_vram"), m_sc3_vram(*this, "sc3_vram"), - m_spriteram16(*this, "sprite_ram") { } + m_spriteram16(*this, "sprite_ram") + { } void totmejan(machine_config &config); void goodejan(machine_config &config); @@ -670,16 +671,15 @@ MACHINE_CONFIG_START(goodejan_state::goodejan) MCFG_SCREEN_SIZE(32*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) //TODO: dynamic resolution MCFG_SCREEN_UPDATE_DRIVER(goodejan_state, screen_update) - MCFG_SCREEN_PALETTE("palette") + MCFG_SCREEN_PALETTE(m_palette) MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, goodejan_state, vblank_irq)) SEIBU_CRTC(config, m_crtc, 0); m_crtc->layer_en_callback().set(FUNC(goodejan_state::layer_en_w)); m_crtc->layer_scroll_callback().set(FUNC(goodejan_state::layer_scroll_w)); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_goodejan) - MCFG_PALETTE_ADD("palette", 0x1000) - MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_goodejan); + PALETTE(config, m_palette).set_format(palette_device::xBGR_444, 0x1000); /* sound hardware */ SPEAKER(config, "mono").front_center(); |