summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/decospr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/decospr.cpp')
-rw-r--r--src/mame/video/decospr.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/video/decospr.cpp b/src/mame/video/decospr.cpp
index 1af9e0f883a..0eb74abeb44 100644
--- a/src/mame/video/decospr.cpp
+++ b/src/mame/video/decospr.cpp
@@ -182,6 +182,9 @@ void decospr_device::device_start()
m_alt_format = 0;
m_pixmask = 0xf;
m_raw_shift = 4; // set to 8 on tattass / nslashers for the custom mixing (because they have 5bpp sprites, and shifting by 4 isn't good enough)
+
+ m_flip_screen = false;
+ save_item(NAME(m_flip_screen));
}
void decospr_device::device_reset()
@@ -195,7 +198,7 @@ void decospr_device::alloc_sprite_bitmap()
}
template<class _BitmapClass>
-void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords, bool invert_flip )
+void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords)
{
//printf("cliprect %04x, %04x\n", cliprect.min_y, cliprect.max_y);
@@ -208,10 +211,7 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle &
int offs, end, incr;
- bool flipscreen = (machine().driver_data()->flip_screen() != 0);
-
- if (invert_flip)
- flipscreen = !flipscreen;
+ bool flipscreen = m_flip_screen;
if (!m_pri_cb.isnull())
@@ -565,11 +565,11 @@ void decospr_device::draw_sprites_common(_BitmapClass &bitmap, const rectangle &
}
}
-void decospr_device::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords, bool invert_flip )
-{ draw_sprites_common(bitmap, cliprect, spriteram, sizewords, invert_flip); }
+void decospr_device::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords)
+{ draw_sprites_common(bitmap, cliprect, spriteram, sizewords); }
-void decospr_device::draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords, bool invert_flip )
-{ draw_sprites_common(bitmap, cliprect, spriteram, sizewords, invert_flip); }
+void decospr_device::draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect, uint16_t* spriteram, int sizewords)
+{ draw_sprites_common(bitmap, cliprect, spriteram, sizewords); }
// inefficient, we should be able to mix in a single pass by comparing the existing priority bitmap from the tilemaps