diff options
Diffstat (limited to 'src/mame/video/decospr.cpp')
-rw-r--r-- | src/mame/video/decospr.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/video/decospr.cpp b/src/mame/video/decospr.cpp index f332a201074..1af9e0f883a 100644 --- a/src/mame/video/decospr.cpp +++ b/src/mame/video/decospr.cpp @@ -191,7 +191,7 @@ void decospr_device::device_reset() void decospr_device::alloc_sprite_bitmap() { - m_screen->register_screen_bitmap(m_sprite_bitmap); + screen().register_screen_bitmap(m_sprite_bitmap); } template<class _BitmapClass> @@ -248,7 +248,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & w = y & 0x0800; - if (!(flash && (m_screen->frame_number() & 1))) + if (!(flash && (screen().frame_number() & 1))) { x = spriteram[offs + 2]; @@ -363,7 +363,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & colour, fx,fy, x,ypos, - m_screen->priority(),pri,m_transpen); + screen().priority(),pri,m_transpen); else m_gfxdecode->gfx(m_gfxregion)->transpen(bitmap,cliprect, sprite - multi * inc, @@ -382,7 +382,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & colour, fx,fy, !flipscreen ? x-16 : x+16,ypos, - m_screen->priority(),pri,m_transpen); + screen().priority(),pri,m_transpen); else m_gfxdecode->gfx(m_gfxregion)->transpen(bitmap,cliprect, (sprite - multi * inc)-mult2, @@ -432,7 +432,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & x = spriteram[offs+1]; - if (!((y&0x2000) && (m_screen->frame_number() & 1))) + if (!((y&0x2000) && (screen().frame_number() & 1))) { if (!m_sprite_bitmap.valid()) colour = (spriteram[offs+2] >>0) & 0x1f; @@ -487,7 +487,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & colour, fx,fy, x + mult * (w-xx),ypos, - m_screen->priority(),pri,m_transpen); + screen().priority(),pri,m_transpen); } ypos -= 512; // wrap-around y @@ -499,7 +499,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle & colour, fx,fy, x + mult * (w-xx),ypos, - m_screen->priority(),pri,m_transpen); + screen().priority(),pri,m_transpen); } } |