diff options
Diffstat (limited to 'src/mame/drivers/good.cpp')
-rw-r--r-- | src/mame/drivers/good.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/good.cpp b/src/mame/drivers/good.cpp index 44daeb366eb..0c34bc2de21 100644 --- a/src/mame/drivers/good.cpp +++ b/src/mame/drivers/good.cpp @@ -43,8 +43,8 @@ voice.rom - VOICE ROM class good_state : public driver_device { public: - good_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + good_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_fg_tilemapram(*this, "fg_tilemapram"), m_bg_tilemapram(*this, "bg_tilemapram"), m_maincpu(*this, "maincpu"), @@ -54,6 +54,9 @@ public: void good(machine_config &config); +protected: + virtual void video_start() override; + private: /* memory pointers */ required_shared_ptr<uint16_t> m_fg_tilemapram; @@ -66,7 +69,6 @@ private: DECLARE_WRITE16_MEMBER(bg_tilemapram_w); TILE_GET_INFO_MEMBER(get_fg_tile_info); TILE_GET_INFO_MEMBER(get_bg_tile_info); - virtual void video_start() override; uint32_t screen_update_good(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); required_device<cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; @@ -295,7 +297,7 @@ MACHINE_CONFIG_START(good_state::good) MCFG_DEVICE_PROGRAM_MAP(good_map) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", good_state, irq2_line_hold) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_good) + GFXDECODE(config, m_gfxdecode, "palette", gfx_good); MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(60) @@ -305,9 +307,7 @@ MACHINE_CONFIG_START(good_state::good) MCFG_SCREEN_UPDATE_DRIVER(good_state, screen_update_good) MCFG_SCREEN_PALETTE("palette") - MCFG_PALETTE_ADD("palette", 0x400) - MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB) - + PALETTE(config, "palette").set_format(palette_device::xRGB_555, 0x400); SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); |