diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-13 11:15:32 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-13 11:15:32 +0000 |
commit | 219e664785890f52079bae7e74543920d638796a (patch) | |
tree | 774d1ab1e7d87ae4d2c1ef335dcef24a28a7d7e8 /src/mame/drivers/jubilee.c | |
parent | af9a5e817d3eefdda79e801056b29167ecbcdef9 (diff) |
Massive change, MACHINE_START\RESET, VIDEO_START\RESET and PALETTE_INIT changed to be members of state classes (no whatsnew)
Diffstat (limited to 'src/mame/drivers/jubilee.c')
-rw-r--r-- | src/mame/drivers/jubilee.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/jubilee.c b/src/mame/drivers/jubilee.c index cb4694e8ab7..b4937a846b4 100644 --- a/src/mame/drivers/jubilee.c +++ b/src/mame/drivers/jubilee.c @@ -102,6 +102,8 @@ public: DECLARE_WRITE8_MEMBER(jubileep_videoram_w); DECLARE_READ8_MEMBER(unk_r); TILE_GET_INFO_MEMBER(get_bg_tile_info); + virtual void video_start(); + virtual void palette_init(); }; @@ -126,10 +128,9 @@ TILE_GET_INFO_MEMBER(jubilee_state::get_bg_tile_info) -static VIDEO_START( jubileep ) +void jubilee_state::video_start() { - jubilee_state *state = machine.driver_data<jubilee_state>(); - state->m_bg_tilemap = &machine.tilemap().create(tilemap_get_info_delegate(FUNC(jubilee_state::get_bg_tile_info),state), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); + m_bg_tilemap = &machine().tilemap().create(tilemap_get_info_delegate(FUNC(jubilee_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); } @@ -141,7 +142,7 @@ static SCREEN_UPDATE_IND16( jubileep ) } -static PALETTE_INIT( jubileep ) +void jubilee_state::palette_init() { } @@ -428,10 +429,8 @@ static MACHINE_CONFIG_START( jubileep, jubilee_state ) MCFG_GFXDECODE(jubileep) - MCFG_PALETTE_INIT(jubileep) MCFG_PALETTE_LENGTH(256) - MCFG_VIDEO_START(jubileep) MCFG_MC6845_ADD("crtc", MC6845, MASTER_CLOCK/4, mc6845_intf) /* guess */ |