summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/i7000.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/i7000.cpp')
-rw-r--r--src/mame/drivers/i7000.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/i7000.cpp b/src/mame/drivers/i7000.cpp
index 561f738f3c7..916505868d4 100644
--- a/src/mame/drivers/i7000.cpp
+++ b/src/mame/drivers/i7000.cpp
@@ -71,10 +71,11 @@ public:
void init_i7000();
-private:
+protected:
void video_start() override;
void machine_start() override;
+private:
required_device<cpu_device> m_maincpu;
required_device<generic_slot_device> m_card;
required_device<gfxdecode_device> m_gfxdecode;
@@ -85,7 +86,7 @@ private:
TILE_GET_INFO_MEMBER(get_bg_tile_info);
MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr);
- DECLARE_PALETTE_INIT(i7000);
+ void i7000_palette(palette_device &palette) const;
DECLARE_DEVICE_IMAGE_LOAD_MEMBER( i7000_card );
DECLARE_READ8_MEMBER(i7000_kbd_r);
@@ -240,7 +241,7 @@ void i7000_state::machine_start()
}
}
-PALETTE_INIT_MEMBER(i7000_state, i7000)
+void i7000_state::i7000_palette(palette_device &palette) const
{
palette.set_pen_color(0, rgb_t(0x33, 0x33, 0x33));
palette.set_pen_color(1, rgb_t(0xBB, 0xBB, 0xBB));
@@ -356,9 +357,8 @@ MACHINE_CONFIG_START(i7000_state::i7000)
MCFG_SCREEN_UPDATE_DRIVER(i7000_state, screen_update_i7000)
MCFG_SCREEN_PALETTE("palette")
- MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_i7000)
- MCFG_PALETTE_ADD("palette", 2)
- MCFG_PALETTE_INIT_OWNER(i7000_state, i7000)
+ GFXDECODE(config, m_gfxdecode, "palette", gfx_i7000);
+ PALETTE(config, "palette", FUNC(i7000_state::i7000_palette), 2);
r6545_1_device &crtc(R6545_1(config, "crtc", XTAL(20'000'000))); /* (?) */
crtc.set_screen("screen");