summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/sprint4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/sprint4.c')
-rw-r--r--src/mame/video/sprint4.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mame/video/sprint4.c b/src/mame/video/sprint4.c
index fe9d98a8999..368f26cc670 100644
--- a/src/mame/video/sprint4.c
+++ b/src/mame/video/sprint4.c
@@ -55,13 +55,12 @@ void sprint4_state::video_start()
}
-SCREEN_UPDATE_IND16( sprint4 )
+UINT32 sprint4_state::screen_update_sprint4(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- sprint4_state *state = screen.machine().driver_data<sprint4_state>();
- UINT8 *videoram = state->m_videoram;
+ UINT8 *videoram = m_videoram;
int i;
- state->m_playfield->draw(bitmap, cliprect, 0, 0);
+ m_playfield->draw(bitmap, cliprect, 0, 0);
for (i = 0; i < 4; i++)
{
@@ -86,13 +85,12 @@ SCREEN_UPDATE_IND16( sprint4 )
}
-SCREEN_VBLANK( sprint4 )
+void sprint4_state::screen_eof_sprint4(screen_device &screen, bool state)
{
// rising edge
- if (vblank_on)
+ if (state)
{
- sprint4_state *state = screen.machine().driver_data<sprint4_state>();
- UINT8 *videoram = state->m_videoram;
+ UINT8 *videoram = m_videoram;
int i;
/* check for sprite-playfield collisions */
@@ -119,12 +117,12 @@ SCREEN_VBLANK( sprint4 )
rect &= screen.machine().primary_screen->visible_area();
- state->m_playfield->draw(state->m_helper, rect, 0, 0);
+ m_playfield->draw(m_helper, rect, 0, 0);
if (i & 1)
bank = 32;
- drawgfx_transpen(state->m_helper, rect, screen.machine().gfx[1],
+ drawgfx_transpen(m_helper, rect, screen.machine().gfx[1],
(code >> 3) | bank,
4,
0, 0,
@@ -133,8 +131,8 @@ SCREEN_VBLANK( sprint4 )
for (y = rect.min_y; y <= rect.max_y; y++)
for (x = rect.min_x; x <= rect.max_x; x++)
- if (colortable_entry_get_value(screen.machine().colortable, state->m_helper.pix16(y, x)) != 0)
- state->m_collision[i] = 1;
+ if (colortable_entry_get_value(screen.machine().colortable, m_helper.pix16(y, x)) != 0)
+ m_collision[i] = 1;
}
/* update sound status */