summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/cbuster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/cbuster.cpp')
-rw-r--r--src/mame/video/cbuster.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/mame/video/cbuster.cpp b/src/mame/video/cbuster.cpp
index f0823c0c105..85b1cddc386 100644
--- a/src/mame/video/cbuster.cpp
+++ b/src/mame/video/cbuster.cpp
@@ -11,10 +11,6 @@
/******************************************************************************/
-
-/******************************************************************************/
-
-
/******************************************************************************/
void cbuster_state::video_start()
@@ -66,35 +62,35 @@ WRITE16_MEMBER(cbuster_state::cbuster_palette_ext_w)
uint32_t cbuster_state::screen_update_twocrude(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
address_space &space = machine().dummy_space();
- uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
+ uint16_t flip = m_deco_tilegen[0]->pf_control_r(space, 0, 0xffff);
flip_screen_set(!BIT(flip, 7));
m_sprgen->set_flip_screen(!BIT(flip, 7));
- m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram16_buffer, 0x400);
+ m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
- m_deco_tilegen1->pf_update(m_pf1_rowscroll, m_pf2_rowscroll);
- m_deco_tilegen2->pf_update(m_pf3_rowscroll, m_pf4_rowscroll);
+ m_deco_tilegen[0]->pf_update(m_pf_rowscroll[0], m_pf_rowscroll[1]);
+ m_deco_tilegen[1]->pf_update(m_pf_rowscroll[2], m_pf_rowscroll[3]);
/* Draw playfields & sprites */
- m_deco_tilegen2->tilemap_2_draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
+ m_deco_tilegen[1]->tilemap_2_draw(screen, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0900, 0x100, 0x0ff);
m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0900, 0x0900, 0x500, 0x0ff);
if (m_pri)
{
- m_deco_tilegen1->tilemap_2_draw(screen, bitmap, cliprect, 0, 0);
- m_deco_tilegen2->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
+ m_deco_tilegen[0]->tilemap_2_draw(screen, bitmap, cliprect, 0, 0);
+ m_deco_tilegen[1]->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
}
else
{
- m_deco_tilegen2->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
- m_deco_tilegen1->tilemap_2_draw(screen, bitmap, cliprect, 0, 0);
+ m_deco_tilegen[1]->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
+ m_deco_tilegen[0]->tilemap_2_draw(screen, bitmap, cliprect, 0, 0);
}
m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0900, 0x100, 0x0ff);
m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0100, 0x0900, 0x500, 0x0ff);
- m_deco_tilegen1->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
+ m_deco_tilegen[0]->tilemap_1_draw(screen, bitmap, cliprect, 0, 0);
return 0;
}