summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/poolshrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/poolshrk.c')
-rw-r--r--src/mame/video/poolshrk.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/video/poolshrk.c b/src/mame/video/poolshrk.c
index 4a368cfdf02..0c2574a9101 100644
--- a/src/mame/video/poolshrk.c
+++ b/src/mame/video/poolshrk.c
@@ -25,12 +25,11 @@ void poolshrk_state::video_start()
}
-SCREEN_UPDATE_IND16( poolshrk )
+UINT32 poolshrk_state::screen_update_poolshrk(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- poolshrk_state *state = screen.machine().driver_data<poolshrk_state>();
int i;
- state->m_bg_tilemap->mark_all_dirty();
+ m_bg_tilemap->mark_all_dirty();
bitmap.fill(0, cliprect);
@@ -38,8 +37,8 @@ SCREEN_UPDATE_IND16( poolshrk )
for (i = 0; i < 16; i++)
{
- int hpos = state->m_hpos_ram[i];
- int vpos = state->m_vpos_ram[i];
+ int hpos = m_hpos_ram[i];
+ int vpos = m_vpos_ram[i];
drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[0], i, (i == 0) ? 0 : 1, 0, 0,
248 - hpos, vpos - 15, 0);
@@ -47,6 +46,6 @@ SCREEN_UPDATE_IND16( poolshrk )
/* draw playfield */
- state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0);
+ m_bg_tilemap->draw(bitmap, cliprect, 0, 0);
return 0;
}