summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/simpl156.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/simpl156.c')
-rw-r--r--src/mame/video/simpl156.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/video/simpl156.c b/src/mame/video/simpl156.c
index 0b03304530b..847a428c6f0 100644
--- a/src/mame/video/simpl156.c
+++ b/src/mame/video/simpl156.c
@@ -25,22 +25,21 @@ void simpl156_state::video_start()
save_pointer(NAME(m_spriteram), 0x2000/2);
}
-SCREEN_UPDATE_IND16( simpl156 )
+UINT32 simpl156_state::screen_update_simpl156(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- simpl156_state *state = screen.machine().driver_data<simpl156_state>();
screen.machine().priority_bitmap.fill(0);
- deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll);
+ deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
bitmap.fill(256, cliprect);
- deco16ic_tilemap_2_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 2);
- deco16ic_tilemap_1_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 4);
+ deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2);
+ deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4);
//FIXME: flip_screen_x should not be written!
- state->flip_screen_set_no_update(1);
+ flip_screen_set_no_update(1);
- screen.machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, state->m_spriteram, 0x1400/4); // 0x1400/4 seems right for charlien (doesn't initialize any more RAM, so will draw a garbage 0 with more)
+ screen.machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x1400/4); // 0x1400/4 seems right for charlien (doesn't initialize any more RAM, so will draw a garbage 0 with more)
return 0;
}