summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/neogeo_spr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/neogeo_spr.cpp')
-rw-r--r--src/mame/video/neogeo_spr.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mame/video/neogeo_spr.cpp b/src/mame/video/neogeo_spr.cpp
index 89ad9aab742..91c3348d93c 100644
--- a/src/mame/video/neogeo_spr.cpp
+++ b/src/mame/video/neogeo_spr.cpp
@@ -11,18 +11,17 @@
// pure virtual functions
//const device_type NEOGEO_SPRITE_BASE = device_creator<neosprite_base_device>;
-/*
-neosprite_base_device::neosprite_base_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, NEOGEO_SPRITE_BASE, "NeoGeo Sprites", tag, owner, clock, "neospritebase", __FILE__),
- m_bppshift(4)
-{
-
-}
-*/
-
-neosprite_base_device::neosprite_base_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, device_type type)
- : device_t(mconfig, type, "Neogeo Sprites", tag, owner, clock, "neosprite", __FILE__),
- m_bppshift(4)
+neosprite_base_device::neosprite_base_device(
+ const machine_config &mconfig,
+ device_type type,
+ const char *name,
+ const char *tag,
+ device_t *owner,
+ uint32_t clock,
+ const char *shortname,
+ const char *source)
+ : device_t(mconfig, type, name, tag, owner, clock, shortname, source)
+ , m_bppshift(4)
{
}
@@ -653,7 +652,7 @@ void neosprite_base_device::set_pens(const pen_t* pens)
const device_type NEOGEO_SPRITE_REGULAR = device_creator<neosprite_regular_device>;
neosprite_regular_device::neosprite_regular_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : neosprite_base_device(mconfig, tag, owner, clock, NEOGEO_SPRITE_REGULAR)
+ : neosprite_base_device(mconfig, NEOGEO_SPRITE_REGULAR, "Neo-Geo Sprites (regular)", tag, owner, clock, "neosprite_reg", __FILE__)
{
}
@@ -701,8 +700,8 @@ inline void neosprite_regular_device::draw_pixel(int romaddr, uint32_t* dst, con
const device_type NEOGEO_SPRITE_OPTIMZIED = device_creator<neosprite_optimized_device>;
neosprite_optimized_device::neosprite_optimized_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : neosprite_base_device(mconfig, tag, owner, clock, NEOGEO_SPRITE_OPTIMZIED),
- m_spritegfx8(nullptr)
+ : neosprite_base_device(mconfig, NEOGEO_SPRITE_OPTIMZIED, "Neo-Geo Sprites (optimized)", tag, owner, clock, "neosprite_opt", __FILE__)
+ , m_spritegfx8(nullptr)
{
}
@@ -778,7 +777,7 @@ const device_type NEOGEO_SPRITE_MIDAS = device_creator<neosprite_midas_device>;
neosprite_midas_device::neosprite_midas_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : neosprite_base_device(mconfig, tag, owner, clock, NEOGEO_SPRITE_MIDAS)
+ : neosprite_base_device(mconfig, NEOGEO_SPRITE_MIDAS, "MIDAS Sprites", tag, owner, clock, "midassprite", __FILE__)
{
m_bppshift = 8;
}