summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/neogeo_spr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/neogeo_spr.h')
-rw-r--r--src/mame/video/neogeo_spr.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/video/neogeo_spr.h b/src/mame/video/neogeo_spr.h
index 983915cf10d..0c4cc9ce5d6 100644
--- a/src/mame/video/neogeo_spr.h
+++ b/src/mame/video/neogeo_spr.h
@@ -21,7 +21,7 @@
#define NEOGEO_VSSTART (0x100)
// todo, sort out what needs to be public and make the rest private/protected
-class neosprite_base_device : public device_t, public device_video_interface
+class neosprite_base_device : public device_t
{
public:
virtual void optimize_sprite_data();
@@ -48,6 +48,7 @@ public:
void start_sprite_line_timer();
virtual void set_sprite_region(uint8_t* region_sprites, uint32_t region_sprites_size);
void set_fixed_regions(uint8_t* fix_cart, uint32_t fix_cart_size, memory_region* fix_bios);
+ void set_screen(screen_device* screen);
void set_pens(const pen_t* pens);
std::unique_ptr<uint16_t[]> m_videoram;
@@ -57,6 +58,8 @@ public:
uint16_t m_vram_read_buffer;
uint16_t m_vram_modulo;
+ const uint8_t *m_region_zoomy;
+
uint32_t m_sprite_gfx_address_mask;
uint8_t m_auto_animation_speed;
@@ -73,6 +76,7 @@ public:
TIMER_CALLBACK_MEMBER(auto_animation_timer_callback);
TIMER_CALLBACK_MEMBER(sprite_line_timer_callback);
+
int m_bppshift; // 4 for 4bpp gfx (NeoGeo) 8 for 8bpp gfx (Midas)
protected:
@@ -89,9 +93,8 @@ protected:
uint8_t* m_region_sprites; uint32_t m_region_sprites_size;
uint8_t* m_region_fixed; uint32_t m_region_fixed_size;
memory_region* m_region_fixedbios;
+ screen_device* m_screen;
const pen_t *m_pens;
-
- required_region_ptr<uint8_t> m_region_zoomy;
};