summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/system1.c
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-07-23 15:37:06 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2013-07-23 15:37:06 +0000
commit4c17cf1831962cc50133410831055a6662ddb350 (patch)
tree262c2b1b280d27dcc115dc1c646ee065be335a49 /src/mame/video/system1.c
parentb592596476adc38522f3c507b589d769ccecb773 (diff)
better this way than specifying our own size
Diffstat (limited to 'src/mame/video/system1.c')
-rw-r--r--src/mame/video/system1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/system1.c b/src/mame/video/system1.c
index 6ca674ac998..7eb73e2a60b 100644
--- a/src/mame/video/system1.c
+++ b/src/mame/video/system1.c
@@ -135,7 +135,7 @@ void system1_state::video_start_common(int pagecount)
}
/* allocate a temporary bitmap for sprite rendering */
- m_sprite_bitmap = auto_bitmap_ind16_alloc(machine(), 640, 260);
+ machine().primary_screen->register_screen_bitmap(m_sprite_bitmap);
/* register for save stats */
save_item(NAME(m_video_mode));
@@ -493,14 +493,14 @@ void system1_state::video_update_common(screen_device &screen, bitmap_ind16 &bit
int x, y;
/* first clear the sprite bitmap and draw sprites within this area */
- m_sprite_bitmap->fill(0, cliprect);
- draw_sprites(*m_sprite_bitmap, cliprect, spritexoffs);
+ m_sprite_bitmap.fill(0, cliprect);
+ draw_sprites(m_sprite_bitmap, cliprect, spritexoffs);
/* iterate over rows */
for (y = cliprect.min_y; y <= cliprect.max_y; y++)
{
UINT16 *fgbase = &fgpixmap.pix16(y & 0xff);
- UINT16 *sprbase = &m_sprite_bitmap->pix16(y & 0xff);
+ UINT16 *sprbase = &m_sprite_bitmap.pix16(y & 0xff);
UINT16 *dstbase = &bitmap.pix16(y);
int bgy = (y + bgyscroll) & 0x1ff;
int bgxscroll = bgrowscroll[y >> 3 & 0x1f];