diff options
Diffstat (limited to 'src/mame/drivers/flyball.c')
-rw-r--r-- | src/mame/drivers/flyball.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/flyball.c b/src/mame/drivers/flyball.c index 75d9fb43925..fdf99db5666 100644 --- a/src/mame/drivers/flyball.c +++ b/src/mame/drivers/flyball.c @@ -60,6 +60,7 @@ public: virtual void machine_reset(); virtual void video_start(); virtual void palette_init(); + UINT32 screen_update_flyball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); }; @@ -99,25 +100,24 @@ void flyball_state::video_start() } -static SCREEN_UPDATE_IND16( flyball ) +UINT32 flyball_state::screen_update_flyball(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - flyball_state *state = screen.machine().driver_data<flyball_state>(); - int pitcherx = state->m_pitcher_horz; - int pitchery = state->m_pitcher_vert - 31; + int pitcherx = m_pitcher_horz; + int pitchery = m_pitcher_vert - 31; - int ballx = state->m_ball_horz - 1; - int bally = state->m_ball_vert - 17; + int ballx = m_ball_horz - 1; + int bally = m_ball_vert - 17; int x; int y; - state->m_tmap->mark_all_dirty(); + m_tmap->mark_all_dirty(); /* draw playfield */ - state->m_tmap->draw(bitmap, cliprect, 0, 0); + m_tmap->draw(bitmap, cliprect, 0, 0); /* draw pitcher */ - drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[1], state->m_pitcher_pic ^ 0xf, 0, 1, 0, pitcherx, pitchery, 1); + drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[1], m_pitcher_pic ^ 0xf, 0, 1, 0, pitcherx, pitchery, 1); /* draw ball */ @@ -423,7 +423,7 @@ static MACHINE_CONFIG_START( flyball, flyball_state ) MCFG_SCREEN_REFRESH_RATE(60) MCFG_SCREEN_SIZE(256, 262) MCFG_SCREEN_VISIBLE_AREA(0, 255, 0, 239) - MCFG_SCREEN_UPDATE_STATIC(flyball) + MCFG_SCREEN_UPDATE_DRIVER(flyball_state, screen_update_flyball) MCFG_GFXDECODE(flyball) MCFG_PALETTE_LENGTH(4) |