diff options
Diffstat (limited to 'src/mame/drivers/dblewing.c')
-rw-r--r-- | src/mame/drivers/dblewing.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/dblewing.c b/src/mame/drivers/dblewing.c index 2217562beca..e507200b6a0 100644 --- a/src/mame/drivers/dblewing.c +++ b/src/mame/drivers/dblewing.c @@ -83,6 +83,7 @@ public: DECLARE_DRIVER_INIT(dblewing); virtual void machine_start(); virtual void machine_reset(); + UINT32 screen_update_dblewing(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; UINT16 dblwings_pri_callback(UINT16 x) @@ -101,21 +102,20 @@ UINT16 dblwings_pri_callback(UINT16 x) -static SCREEN_UPDATE_IND16(dblewing) +UINT32 dblewing_state::screen_update_dblewing(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - dblewing_state *state = screen.machine().driver_data<dblewing_state>(); - address_space &space = state->generic_space(); - UINT16 flip = deco16ic_pf_control_r(state->m_deco_tilegen1, space, 0, 0xffff); + address_space &space = generic_space(); + UINT16 flip = deco16ic_pf_control_r(m_deco_tilegen1, space, 0, 0xffff); - state->flip_screen_set(BIT(flip, 7)); - deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll); + flip_screen_set(BIT(flip, 7)); + deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll); bitmap.fill(0, cliprect); /* not Confirmed */ screen.machine().priority_bitmap.fill(0); - deco16ic_tilemap_2_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 2); - deco16ic_tilemap_1_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 4); - screen.machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, state->m_spriteram, 0x400); + deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2); + deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4); + screen.machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); return 0; } @@ -656,7 +656,7 @@ static MACHINE_CONFIG_START( dblewing, dblewing_state ) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) MCFG_SCREEN_SIZE(64*8, 32*8) MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1) - MCFG_SCREEN_UPDATE_STATIC(dblewing) + MCFG_SCREEN_UPDATE_DRIVER(dblewing_state, screen_update_dblewing) MCFG_PALETTE_LENGTH(4096) MCFG_GFXDECODE(dblewing) |