diff options
Diffstat (limited to 'src/mame/video/dogfgt.c')
-rw-r--r-- | src/mame/video/dogfgt.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/video/dogfgt.c b/src/mame/video/dogfgt.c index 12c5758a47b..c0d96ab617f 100644 --- a/src/mame/video/dogfgt.c +++ b/src/mame/video/dogfgt.c @@ -209,27 +209,26 @@ static void draw_sprites( running_machine &machine, bitmap_ind16 &bitmap,const r } -SCREEN_UPDATE_IND16( dogfgt ) +UINT32 dogfgt_state::screen_update_dogfgt(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - dogfgt_state *state = screen.machine().driver_data<dogfgt_state>(); int offs; - if (state->m_lastflip != state->flip_screen() || state->m_lastpixcolor != state->m_pixcolor) + if (m_lastflip != flip_screen() || m_lastpixcolor != m_pixcolor) { address_space &space = *screen.machine().device("maincpu")->memory().space(AS_PROGRAM); - state->m_lastflip = state->flip_screen(); - state->m_lastpixcolor = state->m_pixcolor; + m_lastflip = flip_screen(); + m_lastpixcolor = m_pixcolor; for (offs = 0; offs < BITMAPRAM_SIZE; offs++) - state->internal_bitmapram_w(space, offs, state->m_bitmapram[offs]); + internal_bitmapram_w(space, offs, m_bitmapram[offs]); } - state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0); + m_bg_tilemap->draw(bitmap, cliprect, 0, 0); draw_sprites(screen.machine(), bitmap, cliprect); - copybitmap_trans(bitmap, state->m_pixbitmap, 0, 0, 0, 0, cliprect, PIXMAP_COLOR_BASE + 8 * state->m_pixcolor); + copybitmap_trans(bitmap, m_pixbitmap, 0, 0, 0, 0, cliprect, PIXMAP_COLOR_BASE + 8 * m_pixcolor); return 0; } |