summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/vsystem_spr2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/vsystem_spr2.h')
-rw-r--r--src/mame/video/vsystem_spr2.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/video/vsystem_spr2.h b/src/mame/video/vsystem_spr2.h
index 9be3c04b950..876a82230ee 100644
--- a/src/mame/video/vsystem_spr2.h
+++ b/src/mame/video/vsystem_spr2.h
@@ -6,26 +6,26 @@
typedef device_delegate<uint32_t (uint32_t)> vsystem_tile2_indirection_delegate;
-#define MCFG_VSYSTEM_SPR2_SET_TILE_INDIRECT( _class, _method) \
- vsystem_spr2_device::set_tile_indirect_cb(*device, vsystem_tile2_indirection_delegate(&_class::_method, #_class "::" #_method, nullptr, (_class *)nullptr));
-#define MCFG_VSYSTEM_SPR2_SET_PRITYPE( _val) \
- vsystem_spr2_device::set_pritype(*device, _val);
-#define MCFG_VSYSTEM_SPR2_SET_GFXREGION( _rgn ) \
- vsystem_spr2_device::set_gfx_region(*device, _rgn);
-#define MCFG_VSYSTEM_SPR2_SET_OFFSETS( _xoffs, _yoffs ) \
- vsystem_spr2_device::set_offsets(*device, _xoffs,_yoffs);
+#define MCFG_VSYSTEM_SPR2_SET_TILE_INDIRECT(_class, _method) \
+ downcast<vsystem_spr2_device &>(*device).set_tile_indirect_cb(vsystem_tile2_indirection_delegate(&_class::_method, #_class "::" #_method, nullptr, (_class *)nullptr));
+#define MCFG_VSYSTEM_SPR2_SET_PRITYPE(_val) \
+ downcast<vsystem_spr2_device &>(*device).set_pritype(_val);
+#define MCFG_VSYSTEM_SPR2_SET_GFXREGION(_rgn) \
+ downcast<vsystem_spr2_device &>(*device).set_gfx_region(_rgn);
+#define MCFG_VSYSTEM_SPR2_SET_OFFSETS(_xoffs, _yoffs) \
+ downcast<vsystem_spr2_device &>(*device).set_offsets(_xoffs,_yoffs);
#define MCFG_VSYSTEM_SPR2_GFXDECODE(_gfxtag) \
- vsystem_spr2_device::static_set_gfxdecode_tag(*device, "^" _gfxtag);
+ downcast<vsystem_spr2_device &>(*device).set_gfxdecode_tag("^" _gfxtag);
class vsystem_spr2_device : public device_t
{
public:
- // static configuration
- static void static_set_gfxdecode_tag(device_t &device, const char *tag);
- static void set_tile_indirect_cb(device_t &device, vsystem_tile2_indirection_delegate newtilecb);
- static void set_pritype(device_t &device, int pritype);
- static void set_gfx_region(device_t &device, int gfx_region);
- static void set_offsets(device_t &device, int xoffs, int yoffs);
+ // configuration
+ void set_gfxdecode_tag(const char *tag);
+ void set_tile_indirect_cb(vsystem_tile2_indirection_delegate newtilecb);
+ void set_pritype(int pritype);
+ void set_gfx_region(int gfx_region);
+ void set_offsets(int xoffs, int yoffs);
vsystem_spr2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);